mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 19:29:18 +00:00
the contiki-maca process should wait for a poll event
This commit is contained in:
parent
b3bb3ff53d
commit
f60a00b93e
@ -295,7 +295,7 @@ PROCESS_THREAD(contiki_maca_process, ev, data)
|
||||
PROCESS_BEGIN();
|
||||
|
||||
while (1) {
|
||||
PROCESS_YIELD();
|
||||
PROCESS_YIELD_UNTIL(ev == PROCESS_EVENT_POLL);
|
||||
|
||||
/* check if there is a request to turn the radio on or off */
|
||||
if(contiki_maca_request_on == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user