mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-01-31 07:55:23 +00:00
Use region default rx2 freq if device-session rx2 freq == 0.
This commit is contained in:
parent
fc3a94521f
commit
4506cd91eb
@ -2170,7 +2170,11 @@ impl Data {
|
|||||||
let mut tx_info = gw::DownlinkTxInfo {
|
let mut tx_info = gw::DownlinkTxInfo {
|
||||||
board: gw_down.board,
|
board: gw_down.board,
|
||||||
antenna: gw_down.antenna,
|
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(),
|
context: gw_down.context.clone(),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user