Minor changes to avoid infinite loops inside companion9x
This commit is contained in:
+3
-1
@@ -577,7 +577,9 @@ void checkTHR()
|
||||
//loop until all switches are reset
|
||||
while (1)
|
||||
{
|
||||
#ifndef SIMU
|
||||
#ifdef SIMU
|
||||
if (!main_thread_running) return;
|
||||
#else
|
||||
getADC_single();
|
||||
#endif
|
||||
int16_t v = anaIn(thrchn);
|
||||
|
||||
Reference in New Issue
Block a user