Skip to content

Commit 035230a

Browse files
Kimmo Vaisanenadbridge
authored andcommitted
Lora: fix RX datarate
rx_config() incorrectly returns a physical layer datarate value when an index to datarate table should be returned.
1 parent 5bbcc4b commit 035230a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/lorawan/lorastack/phy/LoRaPHY.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ bool LoRaPHY::rx_config(rx_config_params_t* rx_conf, int8_t* datarate)
873873

874874
_radio->unlock();
875875

876-
*datarate = phy_dr;
876+
*datarate = dr;
877877

878878
return true;
879879
}

0 commit comments

Comments
 (0)