From 7d60dd7a6d5662c07ff0799317c2fcb4581c9a68 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Wed, 14 Jul 2010 13:59:28 -0400 Subject: [PATCH] in tx_packet, force an interrupt if the maca isn't doing anything so that the transmit starts. Or if the maca is in a reception cycle, advance the softclock timeout to now so that transmission starts as soon as possible (immediately if a packet isn't being received or right after reception finishes). --- lib/maca.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/maca.c b/lib/maca.c index ec44cf580..9740b3778 100644 --- a/lib/maca.c +++ b/lib/maca.c @@ -459,7 +459,9 @@ void tx_packet(volatile packet_t *p) { // print_packets("tx packet"); irq_restore(); if(bit_is_set(*NIPEND, INT_NUM_MACA)) { *INTFRC = (1 << INT_NUM_MACA); } - + if(last_post == NO_POST) { *INTFRC = (1<