mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-17 21:35:44 +03:00
[H7] Fix ADC DMA buffer transposing bug
This commit is contained in:
parent
2f78b3189c
commit
456f5a98f4
1 changed files with 3 additions and 1 deletions
|
@ -453,7 +453,9 @@ void adcGetChannelValues(void)
|
||||||
// Cache coherency should be maintained by MPU facility
|
// Cache coherency should be maintained by MPU facility
|
||||||
|
|
||||||
for (int i = 0; i < ADC_CHANNEL_INTERNAL; i++) {
|
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…
Add table
Add a link
Reference in a new issue