1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-09-28 19:30:23 +03:00

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.
This commit is contained in:
Maarten ter Huurne 2014-08-14 09:51:51 +02:00
parent c1689e41fb
commit 2c47515321

View File

@ -38,6 +38,7 @@ PowerSaver::PowerSaver()
PowerSaver::~PowerSaver() {
removeScreenTimer();
instance = nullptr;
enableScreen();
}
void PowerSaver::setScreenTimeout(unsigned int seconds) {