Merge pull request #51 from malvira/maca-fixes

Maca fixes
This commit is contained in:
Adam Dunkels 2012-12-02 16:01:39 -08:00
commit f83556bd98
2 changed files with 3 additions and 2 deletions

View file

@ -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) {

View file

@ -559,7 +559,8 @@ void insert_at_rx_head(volatile packet_t *p) {
} else {
rx_head->right = p;
p->left = rx_head;
rx_head = p; rx_head->left = 0;
p->right = 0;
rx_head = p;
}
// print_packets("insert at rx head");