diff --git a/core/net/mac/cxmac.c b/core/net/mac/cxmac.c index 5120f8afa..a346268d5 100644 --- a/core/net/mac/cxmac.c +++ b/core/net/mac/cxmac.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: cxmac.c,v 1.13 2010/06/15 19:22:25 adamdunkels Exp $ + * $Id: cxmac.c,v 1.14 2010/08/01 21:18:07 dak664 Exp $ */ /** @@ -600,14 +600,13 @@ send_packet(void) #endif off(); } else { - rtimer_clock_t wt; NETSTACK_RADIO.send(strobe, strobe_len); #if 0 /* Turn off the radio for a while to let the other side respond. We don't need to keep our radio on when we know that the other side needs some time to produce a reply. */ off(); - wt = RTIMER_NOW(); + rtimer_clock_t wt = RTIMER_NOW(); while(RTIMER_CLOCK_LT(RTIMER_NOW(), wt + WAIT_TIME_BEFORE_STROBE_ACK)); #endif /* 0 */ on(); diff --git a/core/net/rime/rime.c b/core/net/rime/rime.c index ab06f1fa3..5ea9e30ab 100644 --- a/core/net/rime/rime.c +++ b/core/net/rime/rime.c @@ -33,7 +33,7 @@ * * This file is part of the Contiki operating system. * - * $Id: rime.c,v 1.29 2010/05/28 06:18:39 nifi Exp $ + * $Id: rime.c,v 1.30 2010/08/01 21:18:07 dak664 Exp $ */ /** @@ -105,7 +105,7 @@ const struct mac_driver *rime_mac; #ifdef RIME_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME #define BROADCAST_ANNOUNCEMENT_MAX_TIME RIME_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME #else /* RIME_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME */ -#define BROADCAST_ANNOUNCEMENT_MAX_TIME CLOCK_SECOND * 600 +#define BROADCAST_ANNOUNCEMENT_MAX_TIME CLOCK_SECOND * 600UL #endif /* RIME_CONF_BROADCAST_ANNOUNCEMENT_MAX_TIME */