From edda6dd86c4344a47360ff912803a4799a3ce79e Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Tue, 9 Mar 2010 13:23:58 +0000 Subject: [PATCH] Minor bugfix: don't subtract collisions and deferrals from the number of transmissions --- core/net/mac/csma.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/net/mac/csma.c b/core/net/mac/csma.c index 339236d05..de966cce6 100644 --- a/core/net/mac/csma.c +++ b/core/net/mac/csma.c @@ -28,7 +28,7 @@ * * This file is part of the Contiki operating system. * - * $Id: csma.c,v 1.12 2010/03/09 13:20:08 adamdunkels Exp $ + * $Id: csma.c,v 1.13 2010/03/09 13:23:58 adamdunkels Exp $ */ /** @@ -54,7 +54,7 @@ #include -#define DEBUG 1 +#define DEBUG 0 #if DEBUG #include #define PRINTF(...) printf(__VA_ARGS__) @@ -111,7 +111,7 @@ packet_sent(void *ptr, int status, int num_transmissions) sent = q->sent; cptr = q->cptr; - num_tx = q->transmissions - q->collisions - q->deferrals; + num_tx = q->transmissions; if(status == MAC_TX_COLLISION || status == MAC_TX_NOACK) {