TSCH: bound max packet size to the system's packetbuf size
This commit is contained in:
parent
0aa36eaa0a
commit
0fd097f821
|
@ -36,6 +36,7 @@
|
||||||
/********** Includes **********/
|
/********** Includes **********/
|
||||||
|
|
||||||
#include "contiki.h"
|
#include "contiki.h"
|
||||||
|
#include "net/packetbuf.h"
|
||||||
#include "net/mac/tsch/tsch-private.h"
|
#include "net/mac/tsch/tsch-private.h"
|
||||||
#include "net/mac/frame802154.h"
|
#include "net/mac/frame802154.h"
|
||||||
#include "net/mac/frame802154e-ie.h"
|
#include "net/mac/frame802154e-ie.h"
|
||||||
|
@ -81,7 +82,7 @@ by default, useful in case of duplicate seqno */
|
||||||
/********** Constants *********/
|
/********** Constants *********/
|
||||||
|
|
||||||
/* Max TSCH packet lenght */
|
/* Max TSCH packet lenght */
|
||||||
#define TSCH_PACKET_MAX_LEN 127
|
#define TSCH_PACKET_MAX_LEN MIN(127,PACKETBUF_SIZE)
|
||||||
|
|
||||||
/********** Functions *********/
|
/********** Functions *********/
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue