fix for freq_b equal zero in repeater entries (#1686)

This commit is contained in:
gullradriel 2023-12-28 20:10:38 +01:00 committed by GitHub
parent 794fece8cc
commit a7393c3492
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1356,8 +1356,8 @@ void ReconView::start_repeat() {
transmitter_model.set_sampling_rate(get_actual_sample_rate(metadata->sample_rate)); 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 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 // 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) { if (current_entry().type == freqman_type::Repeater && current_entry().frequency_b != 0) {
transmitter_model.set_target_frequency(current_entry().frequency_b); transmitter_model.set_target_frequency(current_entry().frequency_b);
} else { } else {
transmitter_model.set_target_frequency(metadata->center_frequency); transmitter_model.set_target_frequency(metadata->center_frequency);