Skip to content

Commit

Permalink
unsigned type for length
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelbl committed Oct 7, 2019
1 parent d603e2e commit 6225a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lmic/lmic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6225a56

Please sign in to comment.