From 2c47515321e04fcb9c2d3c2ebbdaa10e6dfe3319 Mon Sep 17 00:00:00 2001 From: Maarten ter Huurne Date: Thu, 14 Aug 2014 09:51:51 +0200 Subject: [PATCH] Explicitly enable screen when PowerSaver exits In theory the timer could expire between the button press that starts the application launch and the moment the PowerSaver destructor runs. And I think this does in fact happen occasionally thanks to the CPU hogging SD controller driver on the GCW Zero, leading to an application launching with a blanked screen. --- src/powersaver.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/powersaver.cpp b/src/powersaver.cpp index ed503ef..8ebee28 100644 --- a/src/powersaver.cpp +++ b/src/powersaver.cpp @@ -38,6 +38,7 @@ PowerSaver::PowerSaver() PowerSaver::~PowerSaver() { removeScreenTimer(); instance = nullptr; + enableScreen(); } void PowerSaver::setScreenTimeout(unsigned int seconds) {