mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[ion] Dim Brightness before shutting down when the battery low
This commit is contained in:
@@ -311,6 +311,7 @@ void AppsContainer::displayExamModePopUp(bool activate) {
|
||||
|
||||
void AppsContainer::shutdownDueToLowBattery() {
|
||||
while (Ion::Battery::level() == Ion::Battery::Charge::EMPTY) {
|
||||
Ion::Backlight::setBrightness(0);
|
||||
m_emptyBatteryWindow.redraw(true);
|
||||
Ion::Timing::msleep(3000);
|
||||
Ion::Power::suspend();
|
||||
|
||||
Reference in New Issue
Block a user