From a7393c349203e20bd4abf9e983dc674cfc85abba Mon Sep 17 00:00:00 2001 From: gullradriel <3157857+gullradriel@users.noreply.github.com> Date: Thu, 28 Dec 2023 20:10:38 +0100 Subject: [PATCH] fix for freq_b equal zero in repeater entries (#1686) --- firmware/application/apps/ui_recon.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/application/apps/ui_recon.cpp b/firmware/application/apps/ui_recon.cpp index 1dafadf0..fac19f27 100644 --- a/firmware/application/apps/ui_recon.cpp +++ b/firmware/application/apps/ui_recon.cpp @@ -1356,8 +1356,8 @@ void ReconView::start_repeat() { transmitter_model.set_sampling_rate(get_actual_sample_rate(metadata->sample_rate)); transmitter_model.set_baseband_bandwidth(metadata->sample_rate <= 500'000 ? 1'750'000 : 2'500'000); // TX LPF min 1M75 for SR <=500K, and 2M5 (by experimental test) for SR >500K - // set TX to repeater TX freq if entry is Repeater, else use recorded one - if (current_entry().type == freqman_type::Repeater) { + // set TX to repeater TX freq if entry is Repeater and have a valid freq, else use recorded one + if (current_entry().type == freqman_type::Repeater && current_entry().frequency_b != 0) { transmitter_model.set_target_frequency(current_entry().frequency_b); } else { transmitter_model.set_target_frequency(metadata->center_frequency);