From 2d9fe6cf8a112ee1533cb4c77e4ffd8d8feeb577 Mon Sep 17 00:00:00 2001 From: GullCode Date: Wed, 22 Mar 2023 14:37:31 +0100 Subject: [PATCH 1/3] Set 1s peak as default, set 32x resolution as default --- firmware/application/apps/ui_level.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/firmware/application/apps/ui_level.cpp b/firmware/application/apps/ui_level.cpp index cd6d8093..59531f5e 100644 --- a/firmware/application/apps/ui_level.cpp +++ b/firmware/application/apps/ui_level.cpp @@ -180,7 +180,8 @@ namespace ui { }; // default peak value - peak_mode.set_selected_index(1); + peak_mode.set_selected_index(3); + rssi_resolution.set_selected_index(1); //FILL STEP OPTIONS freqman_set_modulation_option( field_mode ); freqman_set_step_option_short( step_mode ); From 56526a571031efddb79238e79bdcd1ca678c1157 Mon Sep 17 00:00:00 2001 From: GullCode Date: Wed, 22 Mar 2023 14:38:00 +0100 Subject: [PATCH 2/3] enabled 1s peak hold on rssi view --- firmware/application/apps/ui_recon.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/firmware/application/apps/ui_recon.cpp b/firmware/application/apps/ui_recon.cpp index 3b05a147..cba2df4a 100644 --- a/firmware/application/apps/ui_recon.cpp +++ b/firmware/application/apps/ui_recon.cpp @@ -890,6 +890,7 @@ namespace ui { rssi.set_focusable(true); + rssi.set_peak( true , 1000 ); rssi.on_select = [this](RSSI&) { recon_thread->stop(); nav_.pop(); From 03c9b4aba709306dbac868729bfd9248a680b3cd Mon Sep 17 00:00:00 2001 From: GullCode Date: Wed, 22 Mar 2023 14:38:47 +0100 Subject: [PATCH 3/3] fixed horizontal peak hold, adjusted horizontal and vertical size --- firmware/application/ui/ui_rssi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/application/ui/ui_rssi.cpp b/firmware/application/ui/ui_rssi.cpp index fc22019e..6d8fd4ab 100644 --- a/firmware/application/ui/ui_rssi.cpp +++ b/firmware/application/ui/ui_rssi.cpp @@ -102,7 +102,7 @@ namespace ui { // show green peak value if( peak_enabled ) { - const Rect r5 { r.left(), r.bottom() + peak , r.width() , 1 }; + const Rect r5 { r.left() + peak - 1 , r.top() , 3 , r.height() }; painter.fill_rectangle( r5, Color::green() @@ -160,7 +160,7 @@ namespace ui { // show green peak value if enabled if( peak_enabled ) { - const Rect r5 { r.left(), r.bottom() - peak , r.width() , 1 }; + const Rect r5 { r.left(), r.bottom() - peak - 1 , r.width() , 3 }; painter.fill_rectangle( r5, Color::green()