improve Vbus detection

This commit is contained in:
mverch67 2025-07-16 11:19:17 +02:00
parent 0ddaaeac3c
commit 335c0164cb

View File

@ -1346,7 +1346,7 @@ class LipoCharger : public HasBatteryLevel
/** /**
* return true if there is an external power source detected * return true if there is an external power source detected
*/ */
virtual bool isVbusIn() override { return ppm->isVbusIn(); } virtual bool isVbusIn() override { return ppm->getVbusVoltage() > 0; }
/** /**
* return true if the battery is currently charging * return true if the battery is currently charging