Fixes #1017: Startup key stuck display
This commit is contained in:
+12
-1
@@ -1116,7 +1116,18 @@ void checkAll()
|
||||
}
|
||||
#endif
|
||||
|
||||
clearKeyEvents();
|
||||
if (!clearKeyEvents()) {
|
||||
displayPopup(STR_KEYSTUCK);
|
||||
tmr10ms_t tgtime = get_tmr10ms() + 500;
|
||||
while (tgtime != get_tmr10ms()) {
|
||||
#if defined(SIMU)
|
||||
SIMU_SLEEP(1);
|
||||
#elif defined(CPUARM)
|
||||
CoTickDelay(1);
|
||||
#endif
|
||||
wdt_reset();
|
||||
}
|
||||
}
|
||||
|
||||
START_SILENCE_PERIOD();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user