From 08d547780c204454a1a90149bda83a71c17fb755 Mon Sep 17 00:00:00 2001 From: bg- Date: Fri, 1 Jun 2007 14:37:02 +0000 Subject: [PATCH] * Some extra delay when broadcasting to break potential symmetries. --- core/dev/cc2420.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/dev/cc2420.c b/core/dev/cc2420.c index a80108b61..dcd0a213b 100644 --- a/core/dev/cc2420.c +++ b/core/dev/cc2420.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * @(#)$Id: cc2420.c,v 1.18 2007/05/31 10:15:57 bg- Exp $ + * @(#)$Id: cc2420.c,v 1.19 2007/06/01 14:37:02 bg- Exp $ */ /* * This code is almost device independent and should be easy to port. @@ -527,6 +527,7 @@ PROCESS_THREAD(cc2420_retransmit_process, ev, data) case PROCESS_EVENT_TIMER: if (last_dst == 0xffff) { n++; + clock_delay(1 + (rand() & (2048 - 1))); if (cc2420_resend() == UIP_FW_OK) { PRINTF("REBCAST %d\n", n); return PT_WAITING; /* Final transmission attempt. */