Switch and Throttle Warnings when loading a model. To be tested and re-tested ...

This commit is contained in:
bsongis
2012-05-25 13:52:39 +00:00
parent d3b14ea3e2
commit 9ef47a1e63
11 changed files with 112 additions and 67 deletions
+5 -1
View File
@@ -771,6 +771,7 @@ void clearKeyEvents()
#else
while (keyDown()); // loop until all keys are up
#endif
memset(keys, 0, sizeof(keys));
putEvent(0);
}
@@ -881,6 +882,8 @@ void checkTHR()
}
checkBacklight();
wdt_reset();
}
}
@@ -923,6 +926,8 @@ void checkSwitches()
checkBacklight();
wdt_reset();
#ifdef SIMU
if (!main_thread_running) return;
sleep(1/*ms*/);
@@ -2645,7 +2650,6 @@ int main(void)
getADC_single();
checkTHR();
checkSwitches();
checkAlarm();
}