Skip to content

Commit

Permalink
Merge pull request #472 from manuelbl/invalid_len_comparison
Browse files Browse the repository at this point in the history
Fix comparison for max data frame length
  • Loading branch information
terrillmoore authored Oct 7, 2019
2 parents 98edf2d + 6225a56 commit 5322dd1
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;
}

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;
Expand Down

0 comments on commit 5322dd1

Please sign in to comment.