Skip to content

Commit

Permalink
[LoRaWAN] Fix LR-FHSS cr encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenCellist committed Oct 28, 2024
1 parent 05d5ef2 commit 5cd5d71
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/protocols/LoRaWAN/LoRaWAN.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3347,13 +3347,13 @@ int16_t LoRaWANNode::findDataRate(uint8_t dr, DataRate_t* dataRate) {
}
switch(dataRateBand & RADIOLIB_LORAWAN_DATA_RATE_CR) {
case(RADIOLIB_LORAWAN_DATA_RATE_CR_1_3):
dataRate->lrFhss.bw = 1;
dataRate->lrFhss.cr = 0x03;
break;
case(RADIOLIB_LORAWAN_DATA_RATE_CR_2_3):
dataRate->lrFhss.bw = 2;
dataRate->lrFhss.cr = 0x01;
break;
default:
return(RADIOLIB_ERR_UNSUPPORTED);;
return(RADIOLIB_ERR_UNSUPPORTED);
}
break;
default:
Expand Down

0 comments on commit 5cd5d71

Please sign in to comment.