From ca098db611828b0925bc7862e86541b6f651ca3f Mon Sep 17 00:00:00 2001 From: maralvira Date: Mon, 17 Jan 2011 15:49:17 +0000 Subject: [PATCH] fix a race condition regarding advancement of the softclock. Without this, the advancment would fail to trigger a tx cycle occasionally. This would cause the packet to get deferred until the next expiration of the softclock. --- cpu/mc1322x/lib/maca.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cpu/mc1322x/lib/maca.c b/cpu/mc1322x/lib/maca.c index 57e1ff834..b3b4ce823 100644 --- a/cpu/mc1322x/lib/maca.c +++ b/cpu/mc1322x/lib/maca.c @@ -30,7 +30,7 @@ * This file is part of libmc1322x: see http://mc1322x.devl.org * for details. * - * $Id: maca.c,v 1.6 2010/11/07 14:06:58 maralvira Exp $ + * $Id: maca.c,v 1.7 2011/01/17 15:49:17 maralvira Exp $ */ #include @@ -461,7 +461,7 @@ void tx_packet(volatile packet_t *p) { if(bit_is_set(*NIPEND, INT_NUM_MACA)) { *INTFRC = (1 << INT_NUM_MACA); } if(last_post == NO_POST) { *INTFRC = (1<