Skip to content

Commit 87aede8

Browse files
committed
Fix #820: don't reject bank enable w/ zero mask prematurely
1 parent 2c2de61 commit 87aede8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lmic/lmic_us_like.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ bit_t LMICuslike_canMapChannels(u1_t chpage, u2_t chmap) {
111111
return 1;
112112
}
113113
} else if (chpage == MCMD_LinkADRReq_ChMaskCntl_USLIKE_BANK) {
114-
if (chmap == 0 || (chmap & 0xFF00) != 0) {
115-
// no bits set, or reserved bitsset , fail.
114+
if ((chmap & 0xFF00) != 0) {
115+
// Reserved bits set, fail.
116116
return 0;
117117
}
118118
} else if (chpage == MCMD_LinkADRReq_ChMaskCntl_USLIKE_125ON ||

0 commit comments

Comments
 (0)