mirror of
https://github.com/meshtastic/firmware.git
synced 2026-10-12 12:26:11 -04:00
Use the dedicated isVbusIn() function for detecting USB plug
This commit is contained in:
1 parent
de26dfe468
commit
2f0fe4e5da
1 file changed
+1
-1
+1
-1
@@ -1453,7 +1453,7 @@ class LipoCharger : public HasBatteryLevel
|
||||
/**
|
||||
* return true if there is an external power source detected
|
||||
*/
|
||||
virtual bool isVbusIn() override { return PPM->getVbusVoltage() > 0; }
|
||||
virtual bool isVbusIn() override { return PPM->isVbusIn(); }
|
||||
|
||||
/**
|
||||
* return true if the battery is currently charging
|
||||
|
||||
Reference in new issue
Block a user