From f60a00b93ed1d2849da3847108e3a16a6475802d Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Sun, 2 Dec 2012 14:26:51 -0500 Subject: [PATCH] the contiki-maca process should wait for a poll event --- cpu/mc1322x/contiki-maca.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu/mc1322x/contiki-maca.c b/cpu/mc1322x/contiki-maca.c index 17e975087..6fc554819 100644 --- a/cpu/mc1322x/contiki-maca.c +++ b/cpu/mc1322x/contiki-maca.c @@ -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) {