mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-17 10:43:24 +00:00
fix USB power detection for analog battery sensors (t-echo and possibly heltec/t-lora32)
This commit is contained in:
parent
c940d22a98
commit
b95baadb9a
@ -120,7 +120,7 @@ class AnalogBatteryLevel : public HasBatteryLevel
|
|||||||
|
|
||||||
/// If we see a battery voltage higher than physics allows - assume charger is pumping
|
/// If we see a battery voltage higher than physics allows - assume charger is pumping
|
||||||
/// in power
|
/// in power
|
||||||
virtual bool isVBUSPlug() { return getBattVoltage() > 1000 * chargingVolt; }
|
virtual bool isVBUSPlug() { return getBattVoltage() > chargingVolt; }
|
||||||
|
|
||||||
/// Assume charging if we have a battery and external power is connected.
|
/// Assume charging if we have a battery and external power is connected.
|
||||||
/// we can't be smart enough to say 'full'?
|
/// we can't be smart enough to say 'full'?
|
||||||
|
Loading…
Reference in New Issue
Block a user