From 47f1d4c8de18f427e04122376e98096a88c9a0c4 Mon Sep 17 00:00:00 2001 From: max_10 Date: Wed, 17 Jan 2018 22:34:09 +0100 Subject: [PATCH] armbox: fix hd51 first start rc bug Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/e50b49278e4000f9ebdc2ef882973c0786f83123 Author: max_10 Date: 2018-01-17 (Wed, 17 Jan 2018) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/driver/rcinput.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/driver/rcinput.cpp b/src/driver/rcinput.cpp index aa895bc50..60acb0021 100644 --- a/src/driver/rcinput.cpp +++ b/src/driver/rcinput.cpp @@ -1345,6 +1345,10 @@ void CRCInput::getMsg_us(neutrino_msg_t * msg, neutrino_msg_data_t * data, uint6 now_pressed -= (t2.tv_usec + t2.tv_sec * 1000000ULL); } SHTDCNT::getInstance()->resetSleepTimer(); +#if HAVE_ARM_HARDWARE + if ((ev.code == 0 || ev.code == 1) && ev.value && firstKey) + continue; +#endif if (ev.value && firstKey) { firstKey = false; CTimerManager::getInstance()->cancelShutdownOnWakeup();