From dcaddc563d5d07407d67975a80ea78f38b271336 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 --- src/driver/rcinput.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/driver/rcinput.cpp b/src/driver/rcinput.cpp index c9cf5e5f9..b228bcefa 100644 --- a/src/driver/rcinput.cpp +++ b/src/driver/rcinput.cpp @@ -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); } 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();