From ab4b3a50eec66e0706871abb7112963b208c9c20 Mon Sep 17 00:00:00 2001 From: Neil Hao Date: Thu, 29 Sep 2022 04:53:26 +0800 Subject: [PATCH] 'battery_gauge_fix' (#1731) --- src/Power.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Power.cpp b/src/Power.cpp index 45092fdc..767c5ca0 100644 --- a/src/Power.cpp +++ b/src/Power.cpp @@ -131,7 +131,7 @@ class AnalogBatteryLevel : public HasBatteryLevel #endif // DEBUG_MSG("battery gpio %d raw val=%u scaled=%u\n", BATTERY_PIN, raw, (uint32_t)(scaled)); last_read_value = scaled; - return scaled * 1000; + return scaled; } else { return last_read_value; }