Use PROCESS_PAUSE macro
This commit is contained in:
parent
53cf5ab6cf
commit
ef06560465
|
@ -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