1
0
Fork 0
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:
jflyper 2018-09-28 11:47:44 +09:00
parent d557203fac
commit 1df0147a2b
3 changed files with 7 additions and 4 deletions

View file

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