From da1290487353327a6406c25fc7c000e98d50622d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Thu, 4 Apr 2019 17:18:22 +0200 Subject: [PATCH] [ion] Dim Brightness before shutting down when the battery low --- apps/apps_container.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/apps_container.cpp b/apps/apps_container.cpp index d516af358..34636cf7a 100644 --- a/apps/apps_container.cpp +++ b/apps/apps_container.cpp @@ -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();