Disable PACKETBUF_ATTR_PACKET_TYPE in the non-Rime case by default

This commit is contained in:
Simon Duquennoy 2015-05-06 14:34:29 +02:00
parent 290fc829ea
commit 333e076b24
6 changed files with 24 additions and 5 deletions

View file

@ -373,11 +373,13 @@ send_packet(mac_callback_t sent, void *ptr)
}
metadata->sent = sent;
metadata->cptr = ptr;
#if PACKETBUF_WITH_PACKET_TYPE
if(packetbuf_attr(PACKETBUF_ATTR_PACKET_TYPE) ==
PACKETBUF_ATTR_PACKET_TYPE_ACK) {
list_push(n->queued_packet_list, q);
} else {
} else
#endif
{
list_add(n->queued_packet_list, q);
}