Skip to content

Commit

Permalink
Clean up comments a little
Browse files Browse the repository at this point in the history
  • Loading branch information
terrillmoore committed May 8, 2021
1 parent 30ed001 commit 43fedd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/lmic/lmic_as923.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,9 +411,10 @@ ostime_t LMICas923_nextTx(ostime_t now) {
if ((LMIC.channelDrMap[chnl] & (1 << (LMIC.datarate & 0xF))) == 0)
continue;

// not available yet?
// This channel is feasible. But might not be available.
feasibleMap |= chnlBit;

// not available yet?
u1_t const band = LMIC.channelFreq[chnl] & 0x3;
if ((s4_t)(LMIC.bands[band].avail - mintime) > 0)
continue;
Expand Down
5 changes: 3 additions & 2 deletions src/lmic/lmic_eu868.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,17 +293,18 @@ ostime_t LMICeu868_nextTx(ostime_t now) {
if (LMIC.channelMap < chnlBit)
break;

// not enabled?
// not enabled?
if ((LMIC.channelMap & chnlBit) == 0)
continue;

// not feasible?
if ((LMIC.channelDrMap[chnl] & (1 << (LMIC.datarate & 0xF))) == 0)
continue;

// not available yet?
// This channel is feasible. But might not be available.
feasibleMap |= chnlBit;

// not available yet?
u1_t const band = LMIC.channelFreq[chnl] & 0x3;
if ((s4_t)(LMIC.bands[band].avail - mintime) > 0)
continue;
Expand Down

0 comments on commit 43fedd5

Please sign in to comment.