[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 GitHub
commit 0dafd2fce9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

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