diff --git a/apps/apps_container.cpp b/apps/apps_container.cpp index cd5f56f5a..d58390967 100644 --- a/apps/apps_container.cpp +++ b/apps/apps_container.cpp @@ -290,7 +290,7 @@ void AppsContainer::shutdownDueToLowBattery() { * case. */ return; } - while (Ion::Battery::level() == Ion::Battery::Charge::EMPTY) { + while (Ion::Battery::level() == Ion::Battery::Charge::EMPTY && !Ion::USB::isPlugged()) { Ion::Backlight::setBrightness(0); if (!GlobalPreferences::sharedGlobalPreferences()->isInExamMode()) { /* Unless the LED is lit up for the exam mode, switch off the LED. IF the diff --git a/apps/battery_timer.cpp b/apps/battery_timer.cpp index db53d7c90..bde13c21c 100644 --- a/apps/battery_timer.cpp +++ b/apps/battery_timer.cpp @@ -9,7 +9,7 @@ BatteryTimer::BatteryTimer() : bool BatteryTimer::fire() { AppsContainer * container = AppsContainer::sharedAppsContainer(); bool needRedrawing = container->updateBatteryState(); - if (Ion::Battery::level() == Ion::Battery::Charge::EMPTY) { + if (Ion::Battery::level() == Ion::Battery::Charge::EMPTY && !Ion::USB::isPlugged()) { container->shutdownDueToLowBattery(); } return needRedrawing;