From 77289e0bc01e9fcbb7adf3a996a4efa69e7af321 Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Wed, 1 Oct 2025 16:12:27 +0300 Subject: [PATCH] Fix erasure of progress bar when it should not be visible When long sweep completes, a black line appeared at the bottom of the screen Also, the same issue occurred even with progress bar turned off This commit amends 3a006f5312610c29fdacd4c145d74303c793e402, erikkaashoek/tinySA#145 --- sa_core.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sa_core.c b/sa_core.c index dcff7e2..66ca456 100644 --- a/sa_core.c +++ b/sa_core.c @@ -5629,7 +5629,11 @@ static volatile int dummy; } // scandirty = true; // To show trigger happened } - if (setting.actual_sweep_time_us > ONE_SECOND_TIME /* && MODE_INPUT(setting.mode) */) { + if ( +#ifdef TINYSA4 + progress_bar && +#endif + show_bar && setting.actual_sweep_time_us > ONE_SECOND_TIME /* && MODE_INPUT(setting.mode) */) { // ili9341_fill(OFFSETX, CHART_BOTTOM+1, WIDTH, 1, 0); // Erase progress bar before updating actual_sweep_time ili9341_set_background(LCD_BG_COLOR); ili9341_fill(OFFSETX, CHART_BOTTOM+1, WIDTH, 1);