mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
[apps] Warn & Suspend when the battery is too low
Change-Id: I814697b36f6111198dc367d4591371e6a6e260d8
This commit is contained in:
@@ -9,4 +9,7 @@ BatteryTimer::BatteryTimer(AppsContainer * container) :
|
||||
|
||||
void BatteryTimer::fire() {
|
||||
m_container->updateBatteryState();
|
||||
if (Ion::Battery::level() == Ion::Battery::Charge::EMPTY) {
|
||||
m_container->shutdownDueToLowBattery();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user