Skip to content

Commit

Permalink
touch up comments
Browse files Browse the repository at this point in the history
  • Loading branch information
terrillmoore committed Aug 19, 2019
1 parent 5a37419 commit 88af127
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/lmic/lmic.c
Original file line number Diff line number Diff line change
Expand Up @@ -924,7 +924,7 @@ scan_mac_cmds(
}

case MCMD_DevStatusReq: {
// LMIC.snr is SNR time 4, convert to real SNR; rounding towards zero.
// LMIC.snr is SNR times 4, convert to real SNR; rounding towards zero.
const int snr = (LMIC.snr + 2) / 4;
// per [1.02] 5.5. the margin is the SNR.
LMIC.devAnsMargin = (u1_t)(0b00111111 & (snr <= -32 ? -32 : snr >= 31 ? 31 : snr));
Expand Down Expand Up @@ -2145,7 +2145,7 @@ static bit_t processDnData (void) {
}
// confirmed uplink is complete without an ack: no port and no flag
initTxrxFlags(__func__, TXRX_NACK | TXRX_NOPORT);
} else if (LMIC.upRepeatCount != 0) {
} else if (LMIC.upRepeatCount != 0) {
if (LMIC.upRepeatCount < LMIC.upRepeat) {
LMIC.upRepeatCount += 1;
txDelay(os_getTime() + ms2osticks(LMICbandplan_TX_RECOVERY_ms), 0);
Expand Down
2 changes: 1 addition & 1 deletion src/lmic/lmic.h
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ struct lmic_t {
u1_t pendTxData[MAX_LEN_PAYLOAD];

u1_t pendMacLen; // number of bytes of pending Mac response data
bit_t pendMacPiggyback; // received on port 0 or piggyback?
bit_t pendMacPiggyback; // received on port 0 or piggyback?
// response data if piggybacked
u1_t pendMacData[LWAN_FCtrl_FOptsLen_MAX];

Expand Down

0 comments on commit 88af127

Please sign in to comment.