Use PROCESS_PAUSE macro
This commit is contained in:
parent
4b984153ab
commit
f61d0b2e1e
|
@ -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();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue