Fixes #1017: Startup key stuck display

This commit is contained in:
Damjan Adamic
2014-12-05 20:45:54 +01:00
parent 1b4834b547
commit 5ad4df344e
16 changed files with 47 additions and 7 deletions
+12 -1
View File
@@ -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();
}