1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-21 15:25:36 +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

@ -237,8 +237,9 @@ void adcInit(const adcConfig_t *config)
}
ADCDevice device = adcDeviceByInstance(ADC_INSTANCE);
if (device == ADCINVALID)
if (device == ADCINVALID) {
return;
}
adc = adcHardware[device];