diff --git a/src/lmic/lmic.c b/src/lmic/lmic.c index e431e8c9..7a1beecf 100644 --- a/src/lmic/lmic.c +++ b/src/lmic/lmic.c @@ -1872,7 +1872,7 @@ static bit_t buildDataFrame (void) { LMIC.adrChanged = 0; } - u1_t flen = end + (txdata ? 5+dlen : 4); + unsigned int flen = end + (txdata ? 5+dlen : 4); if( flen > MAX_LEN_FRAME ) { // Options and payload too big - delay payload txdata = 0;