From c0bb45972675887a5b664e761a0da2bf234d2c0d Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 15 Jan 2015 15:19:53 +0300 Subject: [PATCH] driver/rcinput.cpp: reset first key press only on key press event Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/1398736bd87b8158b6c970301a436cfea83ee2f9 Author: [CST] Focus Date: 2015-01-15 (Thu, 15 Jan 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/rcinput.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/rcinput.cpp b/src/driver/rcinput.cpp index cae200c01..727306d0c 100644 --- a/src/driver/rcinput.cpp +++ b/src/driver/rcinput.cpp @@ -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(); }