From 70fc23ac7e895deec131d209b67e5f652f000efe Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Wed, 4 Nov 2009 16:02:45 +0000 Subject: [PATCH] Enable stream mode by default, remove LED debug mode --- core/net/mac/xmac.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/net/mac/xmac.c b/core/net/mac/xmac.c index 8ebfb17fc..f0b6bf7d3 100644 --- a/core/net/mac/xmac.c +++ b/core/net/mac/xmac.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: xmac.c,v 1.40 2009/11/02 11:58:56 adamdunkels Exp $ + * $Id: xmac.c,v 1.41 2009/11/04 16:02:45 adamdunkels Exp $ */ /** @@ -66,6 +66,7 @@ #define WITH_ACK_OPTIMIZATION 1 #define WITH_RANDOM_WAIT_BEFORE_SEND 0 #define WITH_ENCOUNTER_OPTIMIZATION 1 +#define WITH_STREAMING 1 struct announcement_data { uint16_t id; @@ -164,12 +165,12 @@ static const struct radio_driver *radio; #define PRINTF(...) printf(__VA_ARGS__) #define PRINTDEBUG(...) printf(__VA_ARGS__) #else -/*#undef LEDS_ON +#undef LEDS_ON #undef LEDS_OFF #undef LEDS_TOGGLE #define LEDS_ON(x) #define LEDS_OFF(x) -#define LEDS_TOGGLE(x)*/ +#define LEDS_TOGGLE(x) #define PRINTF(...) #define PRINTDEBUG(...) #endif @@ -458,7 +459,6 @@ send_packet(void) struct queuebuf *packet; int is_already_streaming = 0; - #if WITH_RANDOM_WAIT_BEFORE_SEND { rtimer_clock_t t = RTIMER_NOW() + (random_rand() % (xmac_config.on_time * 4));