Skip to content

Commit

Permalink
Merge pull request #26 from frbehrens/fb_dok1_1
Browse files Browse the repository at this point in the history
Fix comment about ADR rate and power value.
  • Loading branch information
cjhdev authored Feb 28, 2021
2 parents 80368f8 + 765011b commit fb7821d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ldl_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -2144,7 +2144,7 @@ static void processCommands(struct ldl_mac *self, const uint8_t *in, uint8_t len
}
}

/* ignore rate setting 16 */
/* ignore rate setting 15, because that means keep the current value */
if(req->dataRate < 0xfU){

// todo: need to pin out of range to maximum
Expand All @@ -2158,7 +2158,7 @@ static void processCommands(struct ldl_mac *self, const uint8_t *in, uint8_t len
}
}

/* ignore power setting 16 */
/* ignore power setting 15, because that means keep the current value */
if(req->txPower < 0xfU){

if(LDL_Region_validateTXPower(self->ctx.region, req->txPower)){
Expand Down

0 comments on commit fb7821d

Please sign in to comment.