[H7] Fix ADC DMA buffer transposing bug (#9367)
[H7] Fix ADC DMA buffer transposing bug
This commit is contained in:
commit
0dafd2fce9
|
@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue