mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
F3: use ADC device from PG
This commit is contained in:
parent
d557203fac
commit
1df0147a2b
3 changed files with 7 additions and 4 deletions
|
@ -211,8 +211,9 @@ void adcInit(const adcConfig_t *config)
|
|||
}
|
||||
|
||||
ADCDevice device = ADC_CFG_TO_DEV(config->device);
|
||||
if (device == ADCINVALID)
|
||||
if (device == ADCINVALID) {
|
||||
return;
|
||||
}
|
||||
|
||||
adcDevice_t adc = adcHardware[device];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue