This commit is contained in:
minacode 2022-11-21 00:07:29 +01:00 committed by JF
parent 557a328409
commit a82a34cd11

View File

@ -95,7 +95,6 @@ void Battery::SaadcEventHandler(nrfx_saadc_evt_t const* p_event) {
percentRemaining = newPercent;
systemTask->PushMessage(System::Messages::BatteryPercentageUpdated);
// warn about low battery when not charging and below threshold
if (BatteryIsLow() && !isPowerPresent && !batteryLowNotified) {
systemTask->PushMessage(System::Messages::LowBattery);