From affba785b5a1de5a94e2f1f0a07a420162556dd0 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 18 Jan 2011 16:03:19 +0000 Subject: [PATCH] Enabled phase-lock only for channel check rates of 32 Hz or lower --- core/net/mac/contikimac.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/core/net/mac/contikimac.c b/core/net/mac/contikimac.c index 53d9c48fc..d3e35c57d 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.46 2011/01/09 21:07:01 adamdunkels Exp $ + * $Id: contikimac.c,v 1.47 2011/01/18 16:03:19 adamdunkels Exp $ */ /** @@ -73,6 +73,11 @@ #define WITH_FAST_SLEEP 1 #endif +#if NETSTACK_RDC_CHANNEL_CHECK_RATE >= 64 +#undef WITH_PHASE_OPTIMIZATION +#define WITH_PHASE_OPTIMIZATION 0 +#endif + struct announcement_data { uint16_t id; uint16_t value;