1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

[H7] Fix ADC DMA buffer transposing bug (#9367)

[H7] Fix ADC DMA buffer transposing bug
This commit is contained in:
Michael Keller 2020-01-17 00:08:19 +13:00 committed by mikeller
parent a2a2fe313a
commit 543a5e1ba8

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];
}
}
}