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
pull/146/head
alexey.lysiuk 3 months ago committed by erikkaashoek
parent 79221302b3
commit 3a006f5312

@ -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__

Loading…
Cancel
Save

Powered by TurnKey Linux.