Switch and Throttle Warnings when loading a model. To be tested and re-tested ...
This commit is contained in:
+5
-1
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user