From 9200611124ac83b8017355ce75d9fa66e1d13de1 Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Thu, 2 Jul 2020 10:09:26 +0200 Subject: [PATCH] Prevent unneeded updating of status panel --- sa_core.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sa_core.c b/sa_core.c index d5b4c87..ba0d32d 100644 --- a/sa_core.c +++ b/sa_core.c @@ -2340,6 +2340,10 @@ void draw_cal_status(void) ili9341_drawstring(buf, x, y); #if 1 y += YSTEP; + int old_dirty = dirty; + update_rbw(); // To ensure the calc_min_sweep time shown takes the latest delay into account + calculate_step_delay(); + dirty = old_dirty; // restore as update_rbw sets dirty uint32_t t = calc_min_sweep_time_us(); // if (t < setting.sweep_time_us) // t = setting.sweep_time_us;