1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00

[H7] Fix ADC DMA buffer transposing bug

This commit is contained in:
jflyper 2020-01-16 13:39:45 +09:00
parent 2f78b3189c
commit 456f5a98f4

View file

@ -453,7 +453,9 @@ void adcGetChannelValues(void)
// Cache coherency should be maintained by MPU facility
for (int i = 0; i < ADC_CHANNEL_INTERNAL; i++) {
adcValues[i] = adcConversionBuffer[adcOperatingConfig[i].dmaIndex];
if (adcOperatingConfig[i].enabled) {
adcValues[adcOperatingConfig[i].dmaIndex] = adcConversionBuffer[adcOperatingConfig[i].dmaIndex];
}
}
}