diff options
author | minacode <minamoto9@web.de> | 2022-11-20 13:16:28 +0100 |
---|---|---|
committer | JF <JF002@users.noreply.github.com> | 2022-12-27 12:13:52 +0100 |
commit | 51d818b7742a0224abdbc9f55885ada9c353d6df (patch) | |
tree | 7f35b1517f90f2d7f9f9c3c757915c2f541d1368 /src/components/battery/BatteryController.cpp | |
parent | 60027f217ccf13f0503658b6bfa2613bfa406a12 (diff) |
fixed a comment, set threshold to 15%
Diffstat (limited to 'src/components/battery/BatteryController.cpp')
-rw-r--r-- | src/components/battery/BatteryController.cpp | 2 |
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); } |