mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
driver/rcinput.cpp: reset first key press only on key press event
This commit is contained in:
@@ -1243,7 +1243,7 @@ void CRCInput::getMsg_us(neutrino_msg_t * msg, neutrino_msg_data_t * data, uint6
|
|||||||
if (ev.type == EV_SYN)
|
if (ev.type == EV_SYN)
|
||||||
continue; /* ignore... */
|
continue; /* ignore... */
|
||||||
SHTDCNT::getInstance()->resetSleepTimer();
|
SHTDCNT::getInstance()->resetSleepTimer();
|
||||||
if (firstKey) {
|
if (ev.value && firstKey) {
|
||||||
firstKey = false;
|
firstKey = false;
|
||||||
CTimerManager::getInstance()->cancelShutdownOnWakeup();
|
CTimerManager::getInstance()->cancelShutdownOnWakeup();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user