From c9ca5d61e24ef275bcbc1b38caca95b23f981f65 Mon Sep 17 00:00:00 2001 From: adamdunkels Date: Wed, 31 Mar 2010 19:08:56 +0000 Subject: [PATCH] Rewrote the pending_packet() function to check the FIFOP pin instead of the 'pending' variable - works must better on real hardware and is now supported by the latest mspsim --- core/dev/cc2420.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/dev/cc2420.c b/core/dev/cc2420.c index 30f3b37b4..11fafa610 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.47 2010/03/30 23:00:05 adamdunkels Exp $ + * @(#)$Id: cc2420.c,v 1.48 2010/03/31 19:08:56 adamdunkels Exp $ */ /* * This code is almost device independent and should be easy to port. @@ -831,7 +831,7 @@ cc2420_receiving_packet(void) static int pending_packet(void) { - return pending; + return FIFOP_IS_1; } /*---------------------------------------------------------------------------*/ void