The input manager should check whether a powersaver instance is running, to not create one when it's not needed.

This commit is contained in:
Ayla
2011-08-17 00:46:43 +02:00
parent fca8c8e8a1
commit 8c1f4abb5b
+2 -2
View File
@@ -180,8 +180,8 @@ bool InputManager::getEvent(bevent_t *bevent, bool wait) {
break;
}
}
if ( wait ) {
if ( wait && PowerSaver::isRunning())
PowerSaver::getInstance()->resetScreenTimer();
}
return true;
}