This commit is contained in:
minacode 2022-10-09 22:02:49 +02:00 committed by JF
parent cad58f190f
commit 08fa6bd4e4

View file

@ -99,7 +99,7 @@ void Battery::SaadcEventHandler(nrfx_saadc_evt_t const* p_event) {
// warn at 20% battery (wrt. rescaling above) // warn at 20% battery (wrt. rescaling above)
if (!isPowerPresent && BatteryIsLow() && lastPercentRemaining > lowBatteryThreshold) { if (!isPowerPresent && BatteryIsLow() && lastPercentRemaining > lowBatteryThreshold) {
systemTask->PushMessage(System::Messages::LowBattery); systemTask->PushMessage(System::Messages::LowBattery);
} }
} }