Make pull request targets happy

raspi-portduino
code8buster 2023-05-16 13:05:45 -04:00 zatwierdzone przez Thomas Göttgens
rodzic c0979e29ff
commit a9fed83d9a
1 zmienionych plików z 1 dodań i 4 usunięć

Wyświetl plik

@ -263,8 +263,6 @@ bool Power::analogInit()
pinMode(EXT_PWR_DETECT, INPUT); pinMode(EXT_PWR_DETECT, INPUT);
#endif #endif
#ifndef HAS_PMU
#ifdef BATTERY_PIN #ifdef BATTERY_PIN
LOG_DEBUG("Using analog input %d for battery level\n", BATTERY_PIN); LOG_DEBUG("Using analog input %d for battery level\n", BATTERY_PIN);
@ -315,10 +313,9 @@ bool Power::analogInit()
batteryLevel = &analogLevel; batteryLevel = &analogLevel;
return true; return true;
#endif // BATTERY_PIN
#else #else
return false; return false;
#endif // !HAS_PMU #endif
} }
bool Power::setup() bool Power::setup()