Enabled phase-lock only for channel check rates of 32 Hz or lower

This commit is contained in:
adamdunkels 2011-01-18 16:03:19 +00:00
parent 3d28da8813
commit affba785b5

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.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 #define WITH_FAST_SLEEP 1
#endif #endif
#if NETSTACK_RDC_CHANNEL_CHECK_RATE >= 64
#undef WITH_PHASE_OPTIMIZATION
#define WITH_PHASE_OPTIMIZATION 0
#endif
struct announcement_data { struct announcement_data {
uint16_t id; uint16_t id;
uint16_t value; uint16_t value;