From 70ddc0f27ef3683af3be26d40dc8383876e2d6d7 Mon Sep 17 00:00:00 2001 From: bg- Date: Mon, 30 Jul 2007 14:54:49 +0000 Subject: [PATCH] * If we detect a RXFIFO overflow schedule a poll of the device driver. --- core/dev/cc2420.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/dev/cc2420.c b/core/dev/cc2420.c index f63fa96d4..9caae1385 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.20 2007/06/28 15:08:53 bg- Exp $ + * @(#)$Id: cc2420.c,v 1.21 2007/07/30 14:54:49 bg- Exp $ */ /* * This code is almost device independent and should be easy to port. @@ -249,9 +249,8 @@ cc2420_resend(void) unsigned i; if (FIFOP_IS_1 && !FIFO_IS_1) { - /* RXFIFO overflow, send on retransmit. */ + process_poll(&cc2420_process); PRINTF("rxfifo overflow!\n"); - // return UIP_FW_DROPPED; } /* The TX FIFO can only hold one packet! Make sure to not overrun