From fdd59a83e3d562e314b6a5ce827e3e25c01ebb65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Phillip=20K=C3=BChne?= Date: Sun, 16 Feb 2025 20:44:58 +0100 Subject: [PATCH] Reset batttery charge in coloumbs on charge completion --- src/power/PowerManager.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/power/PowerManager.cpp b/src/power/PowerManager.cpp index 6e79e99..1f012b6 100644 --- a/src/power/PowerManager.cpp +++ b/src/power/PowerManager.cpp @@ -178,6 +178,7 @@ void PowerManager::updatePowerStateHandler() { if (PowerManager::busPowered && !PowerManager::chargingState) { // Calibrate voltage offset on full Battery PowerManager::fullVoltageOffset = PowerParameters::Battery::DISCHARGE_CURVE::VOLTAGES[0] - getBatteryVoltage(); + PowerManager::coloumbsRemaining = PowerParameters::Battery::CELL_CHARGE_FULL_COLOUMB; } ESP_LOGD(TAG, "Bus Powered: %d, Charging: %d", busPowered, chargingState);