mirror of https://github.com/ARMmbed/mbed-os.git
Restoring default RX2 data rate
In #b0b0261 we changed the RX2 data rate to start from the highest data rate available for the PHY rather than standard defined DR. This introduced a regression, i.e., even when somebody changed the default RX2 data rate to something usable for their environment, it didn't take any effect. As in reset_mac_params() we override the data rate with max value possible for that PHY. This commit restores the original behaviour and we always use standard defined values.pull/7831/head
parent
f15dbf2c3d
commit
928c68cd7f
|
@ -522,8 +522,7 @@ void LoRaPHY::reset_to_default_values(loramac_protocol_params *params, bool init
|
|||
|
||||
params->sys_params.rx2_channel.frequency = get_default_rx2_frequency();
|
||||
|
||||
// RX2 data rate should also start from the maximum
|
||||
params->sys_params.rx2_channel.datarate = get_default_max_tx_datarate();
|
||||
params->sys_params.rx2_channel.datarate = get_default_rx2_datarate();
|
||||
|
||||
params->sys_params.uplink_dwell_time = phy_params.ul_dwell_time_setting;
|
||||
|
||||
|
|
Loading…
Reference in New Issue