[LoRaWAN] Fix LR-FHSS bw encoding
This commit is contained in:
parent
6a5dcc6a6a
commit
05d5ef2947
1 changed files with 3 additions and 3 deletions
|
@ -3331,15 +3331,15 @@ int16_t LoRaWANNode::findDataRate(uint8_t dr, DataRate_t* dataRate) {
|
|||
modemNew = ModemType_t::LRFHSS;
|
||||
switch(dataRateBand & RADIOLIB_LORAWAN_DATA_RATE_BW) {
|
||||
case(RADIOLIB_LORAWAN_DATA_RATE_BW_137_KHZ):
|
||||
dataRate->lrFhss.bw = 137.0;
|
||||
dataRate->lrFhss.bw = 0x02; // specific encoding
|
||||
dataRate->lrFhss.narrowGrid = 1;
|
||||
break;
|
||||
case(RADIOLIB_LORAWAN_DATA_RATE_BW_336_KHZ):
|
||||
dataRate->lrFhss.bw = 336.0;
|
||||
dataRate->lrFhss.bw = 0x04; // specific encoding
|
||||
dataRate->lrFhss.narrowGrid = 1;
|
||||
break;
|
||||
case(RADIOLIB_LORAWAN_DATA_RATE_BW_1523_KHZ):
|
||||
dataRate->lrFhss.bw = 1523.0;
|
||||
dataRate->lrFhss.bw = 0x08; // specific encoding
|
||||
dataRate->lrFhss.narrowGrid = 0;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Add table
Reference in a new issue