mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-02-03 00:34:24 +00:00
Add SICSLOWPAN_CONF_ACK_ALL for hardware autoack testing
This commit is contained in:
parent
240d478c1f
commit
0a4a0ffb32
@ -32,7 +32,7 @@
|
|||||||
*
|
*
|
||||||
* This file is part of the Contiki operating system.
|
* This file is part of the Contiki operating system.
|
||||||
*
|
*
|
||||||
* $Id: sicslowpan.c,v 1.50 2010/12/13 23:27:40 dak664 Exp $
|
* $Id: sicslowpan.c,v 1.51 2010/12/14 22:18:20 dak664 Exp $
|
||||||
*/
|
*/
|
||||||
/**
|
/**
|
||||||
* \file
|
* \file
|
||||||
@ -1255,6 +1255,11 @@ send_packet(rimeaddr_t *dest)
|
|||||||
*/
|
*/
|
||||||
packetbuf_set_addr(PACKETBUF_ADDR_RECEIVER, dest);
|
packetbuf_set_addr(PACKETBUF_ADDR_RECEIVER, dest);
|
||||||
|
|
||||||
|
/* Force acknowledge from sender (test hardware autoacks) */
|
||||||
|
#if SICSLOWPAN_CONF_ACK_ALL
|
||||||
|
packetbuf_set_attr(PACKETBUF_ATTR_RELIABLE, 1);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Provide a callback function to receive the result of
|
/* Provide a callback function to receive the result of
|
||||||
a packet transmission. */
|
a packet transmission. */
|
||||||
NETSTACK_MAC.send(&packet_sent, NULL);
|
NETSTACK_MAC.send(&packet_sent, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user