From 83a488e5b948c443b4cb4a32efaedbe2b70f3276 Mon Sep 17 00:00:00 2001 From: Brumi-2021 <86470699+Brumi-2021@users.noreply.github.com> Date: Thu, 7 Nov 2024 03:55:32 +0100 Subject: [PATCH] Auto switch C16/C8 default REC format in both BW directions. (#2343) --- firmware/application/apps/capture_app.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/firmware/application/apps/capture_app.cpp b/firmware/application/apps/capture_app.cpp index d5082bab..ca5c5477 100644 --- a/firmware/application/apps/capture_app.cpp +++ b/firmware/application/apps/capture_app.cpp @@ -87,9 +87,12 @@ CaptureAppView::CaptureAppView(NavigationView& nav) auto anti_alias_filter_bandwidth = filter_bandwidth_for_sampling_rate(actual_sample_rate); receiver_model.set_baseband_bandwidth(anti_alias_filter_bandwidth); - // Automatically switch default capture format to C8 when bandwidth setting is increased to >=1.5MHz + // Automatically switch default capture format to C8 when bandwidth setting is increased to >=1.5MHz anb back to C16 for <=1,25Mhz if ((bandwidth >= 1500000) && (previous_bandwidth < 1500000)) { - option_format.set_selected_index(1); + option_format.set_selected_index(1); // Default C8 format for REC, 1500K ... 5500k + } + if ((bandwidth <= 1250000) && (previous_bandwidth > 1250000)) { + option_format.set_selected_index(0); // Default C16 format for REC , 12k5 ... 1250K } previous_bandwidth = bandwidth;