mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-02-25 10:29:00 +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) {
|
if(*MACA_CLK == last_time) {
|
||||||
/* clock isn't running */
|
/* clock isn't running */
|
||||||
/* reinit maca */
|
ResumeMACASync();
|
||||||
reset_maca();
|
|
||||||
radio_init();
|
|
||||||
flyback_init();
|
|
||||||
init_phy();
|
|
||||||
*MACA_CONTROL = (1 << PRM) | (NO_CCA << MODE);
|
|
||||||
enable_irq(MACA);
|
|
||||||
maca_isr();
|
maca_isr();
|
||||||
} else {
|
} else {
|
||||||
if((last_time > (*MACA_SFTCLK + RECV_SOFTIMEOUT)) &&
|
if((last_time > (*MACA_SFTCLK + RECV_SOFTIMEOUT)) &&
|
||||||
|
Loading…
x
Reference in New Issue
Block a user