trunk fmt

This commit is contained in:
Thomas Göttgens
2023-04-02 10:34:31 +02:00
parent fbc3b2beee
commit 1398611276
2 changed files with 7 additions and 7 deletions

View File

@@ -165,11 +165,11 @@ class AnalogBatteryLevel : public HasBatteryLevel
virtual bool isVbusIn() override
{
#ifdef EXT_PWR_DETECT
// if external powered that pin will be pulled up
if (digitalRead(EXT_PWR_DETECT) == HIGH) {
return true;
}
// if it's not HIGH - check the battery
// if external powered that pin will be pulled up
if (digitalRead(EXT_PWR_DETECT) == HIGH) {
return true;
}
// if it's not HIGH - check the battery
#endif
return getBattVoltage() > chargingVolt;