From 8c647daf12601386112016553d4568bbcaa51aee Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Sun, 5 Jul 2020 19:48:20 +0200 Subject: [PATCH] Repair error on vbwSteps in precise mode --- sa_core.c | 2 +- ui.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sa_core.c b/sa_core.c index 6f6c34c..6937729 100644 --- a/sa_core.c +++ b/sa_core.c @@ -1076,7 +1076,7 @@ void update_rbw(void) // calculate the actual_rbw and the vbwSteps (# if (setting.frequency_step > 0 && MODE_INPUT(setting.mode)) { // When doing frequency scanning in input mode vbwSteps = ((int)(2 * (setting.vbw_x10 + (actual_rbw_x10/2)) / actual_rbw_x10)); // calculate # steps in between each frequency step due to rbw being less than frequency step - if (setting.step_delay==1) // if in Precise scanning + if (setting.step_delay_mode==SD_PRECISE) // if in Precise scanning vbwSteps *= 2; // use twice as many steps if (vbwSteps < 1) // at least one step vbwSteps = 1; diff --git a/ui.c b/ui.c index 6b0e5bd..b6f5520 100644 --- a/ui.c +++ b/ui.c @@ -1113,7 +1113,7 @@ const menuitem_t menu_top[] = { #include "ui_sa.c" -#define MENU_STACK_DEPTH_MAX 5 +#define MENU_STACK_DEPTH_MAX 7 const menuitem_t *menu_stack[MENU_STACK_DEPTH_MAX] = { menu_top, NULL, NULL, NULL };