From bea643bc4a97f5104032682ba13aa641a4e0f8b5 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Wed, 23 Feb 2011 11:18:13 -0800 Subject: [PATCH] mc1322x: flush the radio rx queue in the receive process --- cpu/mc1322x/contiki-maca.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpu/mc1322x/contiki-maca.c b/cpu/mc1322x/contiki-maca.c index 3965b3ccf..886b15ac2 100644 --- a/cpu/mc1322x/contiki-maca.c +++ b/cpu/mc1322x/contiki-maca.c @@ -280,6 +280,10 @@ PROCESS_THREAD(contiki_maca_process, ev, data) NETSTACK_RDC.input(); } } + /* Call ourself again to handle remaining packets in the queue */ + if (rx_head != NULL) { + process_poll(&contiki_maca_process); + } };