Re #1017: key stuck removed for AVR platforms, fixed bug in wait

This commit is contained in:
Damjan Adamic
2014-12-07 10:47:26 +01:00
parent 5ad4df344e
commit bf39981b1b
3 changed files with 32 additions and 7 deletions
+4
View File
@@ -1116,6 +1116,7 @@ void checkAll()
}
#endif
#if defined(CPUARM)
if (!clearKeyEvents()) {
displayPopup(STR_KEYSTUCK);
tmr10ms_t tgtime = get_tmr10ms() + 500;
@@ -1128,6 +1129,9 @@ void checkAll()
wdt_reset();
}
}
#else // #if defined(CPUARM)
clearKeyEvents();
#endif // #if defined(CPUARM)
START_SILENCE_PERIOD();
}