Use region default rx2 freq if device-session rx2 freq == 0.

This commit is contained in:
Orne Brocaar 2023-10-10 10:43:43 +01:00
parent fc3a94521f
commit 4506cd91eb

View File

@ -2170,7 +2170,11 @@ impl Data {
let mut tx_info = gw::DownlinkTxInfo {
board: gw_down.board,
antenna: gw_down.antenna,
frequency: self.device_session.rx2_frequency,
frequency: if self.device_session.rx2_frequency == 0 {
self.region_conf.get_defaults().rx2_frequency
} else {
self.device_session.rx2_frequency
},
context: gw_down.context.clone(),
..Default::default()
};