From 6225a5684ea1eb8b94dd1358e1f3c23ff2a3dcf8 Mon Sep 17 00:00:00 2001 From: Manuel Bl <10954524+manuelbl@users.noreply.github.com> Date: Mon, 7 Oct 2019 23:31:09 +0200 Subject: [PATCH] unsigned type for length --- src/lmic/lmic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lmic/lmic.c b/src/lmic/lmic.c index 1202a494..7a1beecf 100644 --- a/src/lmic/lmic.c +++ b/src/lmic/lmic.c @@ -1872,7 +1872,7 @@ static bit_t buildDataFrame (void) { LMIC.adrChanged = 0; } - int 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;