summaryrefslogtreecommitdiff
path: root/src/components/battery/BatteryController.cpp
diff options
context:
space:
mode:
authorminacode <minamoto9@web.de>2022-11-20 13:16:28 +0100
committerJF <JF002@users.noreply.github.com>2022-12-27 12:13:52 +0100
commit51d818b7742a0224abdbc9f55885ada9c353d6df (patch)
tree7f35b1517f90f2d7f9f9c3c757915c2f541d1368 /src/components/battery/BatteryController.cpp
parent60027f217ccf13f0503658b6bfa2613bfa406a12 (diff)
fixed a comment, set threshold to 15%
Diffstat (limited to 'src/components/battery/BatteryController.cpp')
-rw-r--r--src/components/battery/BatteryController.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}