From 51d818b7742a0224abdbc9f55885ada9c353d6df Mon Sep 17 00:00:00 2001 From: minacode Date: Sun, 20 Nov 2022 13:16:28 +0100 Subject: fixed a comment, set threshold to 15% --- src/components/battery/BatteryController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/components/battery/BatteryController.cpp') diff --git a/src/components/battery/BatteryController.cpp b/src/components/battery/BatteryController.cpp index a64ea076..79829360 100644 --- a/src/components/battery/BatteryController.cpp +++ b/src/components/battery/BatteryController.cpp @@ -92,7 +92,7 @@ void Battery::SaadcEventHandler(nrfx_saadc_evt_t const* p_event) { percentRemaining = newPercent; systemTask->PushMessage(System::Messages::BatteryPercentageUpdated); - // warn at 20% battery (wrt. rescaling above) + // warn about low battery when not charging and below threshold if (!isPowerPresent && BatteryIsLow() && lastPercentRemaining > lowBatteryThreshold) { systemTask->PushMessage(System::Messages::LowBattery); } -- cgit v1.2.3