Skip to content

Commit d603e2e

Browse files
committed
Fix comparison for max data frame length
1 parent 852f348 commit d603e2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lmic/lmic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1872,7 +1872,7 @@ static bit_t buildDataFrame (void) {
18721872
LMIC.adrChanged = 0;
18731873
}
18741874

1875-
u1_t flen = end + (txdata ? 5+dlen : 4);
1875+
int flen = end + (txdata ? 5+dlen : 4);
18761876
if( flen > MAX_LEN_FRAME ) {
18771877
// Options and payload too big - delay payload
18781878
txdata = 0;

0 commit comments

Comments
 (0)