Bugfix: with the recent bugfixes, it was no longer possible to turn duty cycling back on after it had been turned off

This commit is contained in:
adamdunkels 2010-12-07 23:12:54 +00:00
parent 5311860ea2
commit c19a967973

View File

@ -28,7 +28,7 @@
* *
* This file is part of the Contiki operating system. * This file is part of the Contiki operating system.
* *
* $Id: contikimac.c,v 1.42 2010/12/06 09:08:22 adamdunkels Exp $ * $Id: contikimac.c,v 1.43 2010/12/07 23:12:54 adamdunkels Exp $
*/ */
/** /**
@ -1184,6 +1184,7 @@ turn_on(void)
{ {
if(contikimac_is_on == 0) { if(contikimac_is_on == 0) {
contikimac_is_on = 1; contikimac_is_on = 1;
contikimac_keep_radio_on = 0;
#if NURTIMER #if NURTIMER
rtimer_schedule(&rt, CYCLE_TIME, 1); rtimer_schedule(&rt, CYCLE_TIME, 1);
#else #else