mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
set an initial default channel --- otherwise the maca isr hogs the
CPU.
This commit is contained in:
parent
76a8e49262
commit
17e7827d43
@ -173,6 +173,7 @@ void maca_init(void) {
|
|||||||
radio_init();
|
radio_init();
|
||||||
flyback_init();
|
flyback_init();
|
||||||
init_phy();
|
init_phy();
|
||||||
|
set_channel(0); /* things get weird if you never set a channel */
|
||||||
free_head = 0; tx_head = 0; rx_head = 0; rx_end = 0; tx_end = 0; dma_tx = 0; dma_rx = 0;
|
free_head = 0; tx_head = 0; rx_head = 0; rx_end = 0; tx_end = 0; dma_tx = 0; dma_rx = 0;
|
||||||
free_all_packets();
|
free_all_packets();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user