set an initial default channel --- otherwise the maca isr hogs the

CPU.
This commit is contained in:
Mariano Alvira 2011-07-21 09:26:38 -04:00
parent 76a8e49262
commit 17e7827d43

View file

@ -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();