armbox: fix hd51 first start rc bug

This commit is contained in:
max_10
2018-01-17 22:34:09 +01:00
committed by Thilo Graf
parent 5151172a93
commit dcaddc563d

View File

@@ -1338,6 +1338,10 @@ void CRCInput::getMsg_us(neutrino_msg_t * msg, neutrino_msg_data_t * data, uint6
now_pressed -= (t2.tv_usec + t2.tv_sec * 1000000ULL); now_pressed -= (t2.tv_usec + t2.tv_sec * 1000000ULL);
} }
SHTDCNT::getInstance()->resetSleepTimer(); SHTDCNT::getInstance()->resetSleepTimer();
#if HAVE_ARM_HARDWARE
if ((ev.code == 0 || ev.code == 1) && ev.value && firstKey)
continue;
#endif
if (ev.value && firstKey) { if (ev.value && firstKey) {
firstKey = false; firstKey = false;
CTimerManager::getInstance()->cancelShutdownOnWakeup(); CTimerManager::getInstance()->cancelShutdownOnWakeup();