From 4506cd91eb6aae4f75e64943d59f108fc0efcfdd Mon Sep 17 00:00:00 2001 From: Orne Brocaar Date: Tue, 10 Oct 2023 10:43:43 +0100 Subject: [PATCH] Use region default rx2 freq if device-session rx2 freq == 0. --- chirpstack/src/downlink/data.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/chirpstack/src/downlink/data.rs b/chirpstack/src/downlink/data.rs index a0949753..ab4afd8b 100644 --- a/chirpstack/src/downlink/data.rs +++ b/chirpstack/src/downlink/data.rs @@ -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() };