mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-09-09 23:54:32 +00:00
Bugfix: must set the SICSLOWPAM_MAX_MAC_TRANSMISSIONS attribute after clearing the buffer, otherwise it will not be used for outoing packets.
This commit is contained in:
parent
0aa448f190
commit
f5307fc01e
@ -1445,6 +1445,11 @@ output(uip_lladdr_t *localdest)
|
|||||||
framer_hdrlen = 21;
|
framer_hdrlen = 21;
|
||||||
}
|
}
|
||||||
packetbuf_clear();
|
packetbuf_clear();
|
||||||
|
|
||||||
|
/* We must set the max transmissions attribute again after clearing
|
||||||
|
the buffer. */
|
||||||
|
packetbuf_set_attr(PACKETBUF_ATTR_MAX_MAC_TRANSMISSIONS,
|
||||||
|
SICSLOWPAN_MAX_MAC_TRANSMISSIONS);
|
||||||
#else /* USE_FRAMER_HDRLEN */
|
#else /* USE_FRAMER_HDRLEN */
|
||||||
framer_hdrlen = 21;
|
framer_hdrlen = 21;
|
||||||
#endif /* USE_FRAMER_HDRLEN */
|
#endif /* USE_FRAMER_HDRLEN */
|
||||||
|
Loading…
Reference in New Issue
Block a user