mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-22 07:45:29 +03:00
Align F1 and F3 ADC code.
This commit is contained in:
parent
7e9db61103
commit
3a537d8ef9
4 changed files with 37 additions and 15 deletions
|
@ -25,6 +25,9 @@ uint16_t adcGetChannel(uint8_t channel)
|
|||
if (adcConfig[2].enabled) {
|
||||
debug[2] = adcValues[adcConfig[2].dmaIndex];
|
||||
}
|
||||
if (adcConfig[3].enabled) {
|
||||
debug[3] = adcValues[adcConfig[3].dmaIndex];
|
||||
}
|
||||
#endif
|
||||
return adcValues[adcConfig[channel].dmaIndex];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue