diff --git a/sa_cmd.c b/sa_cmd.c index 2cda2af..c31db7a 100644 --- a/sa_cmd.c +++ b/sa_cmd.c @@ -273,8 +273,6 @@ usage: VNA_SHELL_FUNCTION(cmd_v) - - { if (argc != 1) { shell_printf("%d\r\n", SI4432_Sel); @@ -537,6 +535,7 @@ VNA_SHELL_FUNCTION(cmd_correction) float v = my_atof(argv[2]); config.correction_frequency[i] = f; config.correction_value[i] = v; + redraw_request|=REDRAW_AREA; // to ensure the change in level will be visible shell_printf("updated %d to %d %.1f\r\n", i, config.correction_frequency[i], config.correction_value[i]); } diff --git a/sa_core.c b/sa_core.c index 468e310..66015e5 100644 --- a/sa_core.c +++ b/sa_core.c @@ -3250,7 +3250,7 @@ quit: in_selftest = false; sweep_mode = SWEEP_ENABLE; - set_refer_output(0); + set_refer_output(-1); reset_settings(M_LOW); #endif } diff --git a/ui_sa.c b/ui_sa.c index 248e7af..978582e 100644 --- a/ui_sa.c +++ b/ui_sa.c @@ -571,6 +571,7 @@ static UI_FUNCTION_CALLBACK(menu_store_preset_cb) (void)item; if (data == 100) { reset_settings(M_LOW); // Restore all defaults in Low mode + set_refer_output(-1); // setting.mode = -1; data = 0; }