From 6eec97aa23a77afd7e6f6ee7a77fb2c69e7329d8 Mon Sep 17 00:00:00 2001 From: bsongis Date: Fri, 25 May 2012 17:06:29 +0000 Subject: [PATCH] Could cause a reboot in certain conditions. Bug also present in er9x / gruvin9x! --- src/open9x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/open9x.cpp b/src/open9x.cpp index 431cd51c8..72a6343d4 100644 --- a/src/open9x.cpp +++ b/src/open9x.cpp @@ -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);