Skip to content

Commit 30ed001

Browse files
committed
Fix #730: uninitialized variable
1 parent 9a3792d commit 30ed001

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/lmic/lmic_as923.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ ostime_t LMICas923_nextTx(ostime_t now) {
395395

396396
// make a mask of candidates available for use
397397
availMap = 0;
398+
feasibleMap = 0;
398399
for (u1_t chnl = 0; chnl < MAX_CHANNELS; ++chnl) {
399400
u2_t chnlBit = 1 << chnl;
400401

src/lmic/lmic_eu868.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ ostime_t LMICeu868_nextTx(ostime_t now) {
285285

286286
// make a mask of candidates available for use
287287
availMap = 0;
288+
feasibleMap = 0;
288289
for (u1_t chnl = 0; chnl < MAX_CHANNELS; ++chnl) {
289290
u2_t chnlBit = 1 << chnl;
290291

0 commit comments

Comments
 (0)