From bf503d362917068c563144da7b14141199671306 Mon Sep 17 00:00:00 2001 From: DiSlord Date: Wed, 1 Jul 2020 21:11:43 +0300 Subject: [PATCH] Update greed on correction complete --- sa_core.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sa_core.c b/sa_core.c index e3e4839..a7b3140 100644 --- a/sa_core.c +++ b/sa_core.c @@ -1776,8 +1776,11 @@ sweep_again: // stay in sweep loop when output mo setting.additional_step_delay_us+=dt; } // Update info on correction on next step, after apply this one - if (last_dt && dt == 0) - redraw_request|=REDRAW_CAL_STATUS|REDRAW_FREQUENCY; + if (last_dt && dt == 0){ + redraw_request|=REDRAW_CAL_STATUS; + if (FREQ_IS_CW()) // if zero span mode + update_grid(); // and update grid and frequency + } last_dt = dt; }