From d117a893607c8896ee990d0038a8bc963c3ab9f1 Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Mon, 2 Feb 2026 11:41:22 -0600 Subject: [PATCH] Prefer EXT_PWR_DETECT pin over chargingVolt to detect power unplugged --- src/Power.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Power.cpp b/src/Power.cpp index b211d760e2c..a7da6f7a98c 100644 --- a/src/Power.cpp +++ b/src/Power.cpp @@ -459,6 +459,8 @@ class AnalogBatteryLevel : public HasBatteryLevel } // if it's not HIGH - check the battery #endif + // If we have an EXT_PWR_DETECT pin and it indicates no external power, believe it. + return false; // technically speaking this should work for all(?) NRF52 boards // but needs testing across multiple devices. NRF52 USB would not even work if