From fc46c84d0b788d4d5221e478414ab57b908412d0 Mon Sep 17 00:00:00 2001 From: DiSlord Date: Sun, 5 Jul 2020 22:07:12 +0300 Subject: [PATCH] Remove more calls update_rbw Not need made dirty in it --- sa_cmd.c | 2 +- sa_core.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/sa_cmd.c b/sa_cmd.c index 489eaca..c50b4de 100644 --- a/sa_cmd.c +++ b/sa_cmd.c @@ -552,7 +552,7 @@ VNA_SHELL_FUNCTION(cmd_scanraw) int old_step = setting.frequency_step; float f_step = (stop-start)/ points; setting.frequency_step = (int32_t)f_step; - update_rbw(); + streamPut(shell_stream, '{'); static uint32_t old_start=0, old_stop=0, old_points=0; if (old_start != start || old_stop != stop || old_points != points) { diff --git a/sa_core.c b/sa_core.c index edde0bb..376c654 100644 --- a/sa_core.c +++ b/sa_core.c @@ -1084,7 +1084,6 @@ void update_rbw(void) // calculate the actual_rbw and the vbwSteps (# setting.vbw_x10 = actual_rbw_x10; vbwSteps = 1; // only one vbwSteps } - dirty = true; } int binary_search_frequency(int f) // Search which index in the frequency tabled matches with frequency f using actual_rbw