mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 16:29:34 +00:00
don't need to reinit maca when the clock stops, just call resume sync
instead.
This commit is contained in:
parent
081c8ce098
commit
e0da07ae95
@ -122,13 +122,7 @@ void check_maca(void) {
|
||||
|
||||
if(*MACA_CLK == last_time) {
|
||||
/* clock isn't running */
|
||||
/* reinit maca */
|
||||
reset_maca();
|
||||
radio_init();
|
||||
flyback_init();
|
||||
init_phy();
|
||||
*MACA_CONTROL = (1 << PRM) | (NO_CCA << MODE);
|
||||
enable_irq(MACA);
|
||||
ResumeMACASync();
|
||||
maca_isr();
|
||||
} else {
|
||||
if((last_time > (*MACA_SFTCLK + RECV_SOFTIMEOUT)) &&
|
||||
|
Loading…
Reference in New Issue
Block a user