mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-02-01 03:33:05 +00:00
commit
f83556bd98
cpu/mc1322x
@ -295,7 +295,7 @@ PROCESS_THREAD(contiki_maca_process, ev, data)
|
|||||||
PROCESS_BEGIN();
|
PROCESS_BEGIN();
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
PROCESS_YIELD();
|
PROCESS_YIELD_UNTIL(ev == PROCESS_EVENT_POLL);
|
||||||
|
|
||||||
/* check if there is a request to turn the radio on or off */
|
/* check if there is a request to turn the radio on or off */
|
||||||
if(contiki_maca_request_on == 1) {
|
if(contiki_maca_request_on == 1) {
|
||||||
|
@ -559,7 +559,8 @@ void insert_at_rx_head(volatile packet_t *p) {
|
|||||||
} else {
|
} else {
|
||||||
rx_head->right = p;
|
rx_head->right = p;
|
||||||
p->left = rx_head;
|
p->left = rx_head;
|
||||||
rx_head = p; rx_head->left = 0;
|
p->right = 0;
|
||||||
|
rx_head = p;
|
||||||
}
|
}
|
||||||
|
|
||||||
// print_packets("insert at rx head");
|
// print_packets("insert at rx head");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user