From 335c0164cb12eb77bbb0be76ddd7c2c1b50a8db9 Mon Sep 17 00:00:00 2001 From: mverch67 Date: Wed, 16 Jul 2025 11:19:17 +0200 Subject: [PATCH] improve Vbus detection --- src/Power.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Power.cpp b/src/Power.cpp index 434f226c7..522cf774f 100644 --- a/src/Power.cpp +++ b/src/Power.cpp @@ -1346,7 +1346,7 @@ class LipoCharger : public HasBatteryLevel /** * 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