format
This commit is contained in:
parent
cad58f190f
commit
08fa6bd4e4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue