Fix build when BATTERY_PIN is set

pull/1444/head^2
Sacha Weatherstone 2022-05-07 20:47:52 +10:00
rodzic 5e7b372345
commit 0ec6771cf7
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7AB2D7E206124B31
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -104,8 +104,8 @@ class AnalogBatteryLevel : public HasBatteryLevel
#ifdef BATTERY_PIN #ifdef BATTERY_PIN
// Override variant or default ADC_MULTIPLIER if we have the override pref // Override variant or default ADC_MULTIPLIER if we have the override pref
float operativeAdcMultiplier = radioConfig.preferences.adc_multiplier_override > 0 float operativeAdcMultiplier = config.payloadVariant.power.adc_multiplier_override > 0
? radioConfig.preferences.adc_multiplier_override ? config.payloadVariant.power.adc_multiplier_override
: ADC_MULTIPLIER; : ADC_MULTIPLIER;
// Do not call analogRead() often. // Do not call analogRead() often.
const uint32_t min_read_interval = 5000; const uint32_t min_read_interval = 5000;