From 3a006f5312610c29fdacd4c145d74303c793e402 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Sun, 28 Sep 2025 12:28:31 +0300 Subject: [PATCH] Show sweep progress bar on spectrum analyzer screen only * Hide progress bar in file browser * Hide progress bar in form/fullscreen menu * Do not clear progress bar when it was not drawn. This is the case with file browser when previous or next page button is held but not released --- sa_core.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sa_core.c b/sa_core.c index a0053df..dcff7e2 100644 --- a/sa_core.c +++ b/sa_core.c @@ -5095,7 +5095,8 @@ static bool sweep(bool break_on_operation) #endif } - bool show_bar = ( MODE_INPUT(setting.mode) || setting.frequency_step != 0 || setting.level_sweep != 0.0 ? true : false); + bool show_bar = ( MODE_INPUT(setting.mode) || setting.frequency_step != 0 || setting.level_sweep != 0.0 ) + && !isFullScreenMode() && !current_menu_is_form(); #if 0 #ifdef TINYSA4 @@ -5205,7 +5206,7 @@ static bool sweep(bool break_on_operation) #ifdef TINYSA4 progress_bar && #endif - setting.actual_sweep_time_us > ONE_SECOND_TIME /* && MODE_INPUT(setting.mode) */) { + show_bar && setting.actual_sweep_time_us > ONE_SECOND_TIME /* && MODE_INPUT(setting.mode) */) { ili9341_set_background(LCD_BG_COLOR); ili9341_fill(OFFSETX, CHART_BOTTOM+1, WIDTH, 1); // Erase progress bar #ifdef __SWEEP_RESTART__