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); } diff --git a/src/components/battery/BatteryController.h b/src/components/battery/BatteryController.h index df592232..3a7d73ce 100644 --- a/src/components/battery/BatteryController.h +++ b/src/components/battery/BatteryController.h @@ -54,7 +54,7 @@ namespace Pinetime { void SaadcEventHandler(nrfx_saadc_evt_t const* p_event); static void AdcCallbackStatic(nrfx_saadc_evt_t const* event); - static constexpr uint8_t lowBatteryThreshold {20}; + static constexpr uint8_t lowBatteryThreshold {15}; bool isReading = false;