Don't call up the netstack if the transmission was deferred
This commit is contained in:
parent
dc3e6c1877
commit
d0e6436a20
1 changed files with 4 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
|||
*
|
||||
* This file is part of the Contiki operating system.
|
||||
*
|
||||
* $Id: contikimac.c,v 1.9 2010/03/09 13:19:05 adamdunkels Exp $
|
||||
* $Id: contikimac.c,v 1.10 2010/03/09 20:37:02 adamdunkels Exp $
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -776,7 +776,9 @@ static void
|
|||
qsend_packet(mac_callback_t sent, void *ptr)
|
||||
{
|
||||
int ret = send_packet(sent, ptr);
|
||||
mac_call_sent_callback(sent, ptr, ret, 1);
|
||||
if(ret != MAC_TX_DEFERRED) {
|
||||
mac_call_sent_callback(sent, ptr, ret, 1);
|
||||
}
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue