Could cause a reboot in certain conditions. Bug also present in er9x / gruvin9x!

This commit is contained in:
bsongis
2012-05-25 17:06:29 +00:00
parent 235c578a9c
commit 6eec97aa23
+1 -1
View File
@@ -769,7 +769,7 @@ void clearKeyEvents()
#ifdef SIMU
while (keyDown() && main_thread_running) sleep(1/*ms*/);
#else
while (keyDown()); // loop until all keys are up
while (keyDown()) wdt_reset(); // loop until all keys are up
#endif
memset(keys, 0, sizeof(keys));
putEvent(0);