driver/rcinput.cpp: reset first key press only on key press event

This commit is contained in:
[CST] Focus
2015-01-15 15:19:53 +03:00
parent 8952a4c79a
commit 1398736bd8

View File

@@ -1243,7 +1243,7 @@ void CRCInput::getMsg_us(neutrino_msg_t * msg, neutrino_msg_data_t * data, uint6
if (ev.type == EV_SYN)
continue; /* ignore... */
SHTDCNT::getInstance()->resetSleepTimer();
if (firstKey) {
if (ev.value && firstKey) {
firstKey = false;
CTimerManager::getInstance()->cancelShutdownOnWakeup();
}