Use PROCESS_PAUSE macro

This commit is contained in:
Ralf Schlatterbeck 2014-06-30 10:25:47 +02:00
parent 4b984153ab
commit f61d0b2e1e

View file

@ -66,8 +66,7 @@ PROCESS_THREAD(arduino_sketch, ev, data)
while (1) { while (1) {
loop (); loop ();
/* Give other processes a chance to run */ /* Give other processes a chance to run */
process_post (&arduino_sketch, PROCESS_EVENT_CONTINUE, NULL); PROCESS_PAUSE();
PROCESS_WAIT_EVENT();
} }
PROCESS_END(); PROCESS_END();
} }