Minor changes to avoid infinite loops inside companion9x

This commit is contained in:
bsongis
2011-12-08 19:48:40 +00:00
parent 9c40d8b9b3
commit f25c282249
+3 -1
View File
@@ -577,7 +577,9 @@ void checkTHR()
//loop until all switches are reset //loop until all switches are reset
while (1) while (1)
{ {
#ifndef SIMU #ifdef SIMU
if (!main_thread_running) return;
#else
getADC_single(); getADC_single();
#endif #endif
int16_t v = anaIn(thrchn); int16_t v = anaIn(thrchn);