From c19a96797378cb21807ea4d70737029b45298cc6 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 7 Dec 2010 23:12:54 +0000 Subject: [PATCH] Bugfix: with the recent bugfixes, it was no longer possible to turn duty cycling back on after it had been turned off --- core/net/mac/contikimac.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/net/mac/contikimac.c b/core/net/mac/contikimac.c index 8c40d7399..910981ca7 100644 --- a/core/net/mac/contikimac.c +++ b/core/net/mac/contikimac.c @@ -28,7 +28,7 @@ * * 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) { contikimac_is_on = 1; + contikimac_keep_radio_on = 0; #if NURTIMER rtimer_schedule(&rt, CYCLE_TIME, 1); #else