fix charging indication for dumb battery sensors

pull/663/head
Kevin Hester 2021-01-16 13:05:33 +08:00
rodzic d1be7cf142
commit fd9ffbbb88
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -83,7 +83,7 @@ class AnalogBatteryLevel : public HasBatteryLevel
/// If we see a battery voltage higher than physics allows - assume charger is pumping
/// in power
virtual bool isVBUSPlug() { return getBattVoltage() > chargingVolt; }
virtual bool isVBUSPlug() { return getBattVoltage() > 1000 * chargingVolt; }
/// Assume charging if we have a battery and external power is connected.
/// we can't be smart enough to say 'full'?