From a01f0c002167fa27e88273d6cad3bd9efc7cae6d Mon Sep 17 00:00:00 2001 From: erikkaashoek Date: Mon, 14 Jun 2021 08:54:26 +0200 Subject: [PATCH] Log averaging noise marker corrections --- NANOVNA_STM32_F303/adc.c | 1 + main.c | 8 ++++++-- nanovna.h | 2 ++ plot.c | 6 +++--- sa_core.c | 23 +++++++++++++---------- ui_sa.c | 1 + 6 files changed, 26 insertions(+), 15 deletions(-) diff --git a/NANOVNA_STM32_F303/adc.c b/NANOVNA_STM32_F303/adc.c index b6444e6..90b3a3a 100644 --- a/NANOVNA_STM32_F303/adc.c +++ b/NANOVNA_STM32_F303/adc.c @@ -104,6 +104,7 @@ uint16_t adc_single_read(uint32_t chsel) uint16_t adc1_single_read(uint32_t chsel) { + (void)chsel; /* ADC setup */ adcConvert(&ADCD1, &adcgrpcfgVersion, samples, 1); return(samples[0]); diff --git a/main.c b/main.c index 7717501..b9307c5 100644 --- a/main.c +++ b/main.c @@ -1398,7 +1398,7 @@ VNA_SHELL_FUNCTION(cmd_trace) } // goto usage; } - static const char cmd_store_list[] = "store|clear|subtract"; + static const char cmd_store_list[] = "store|clear|subtract|value"; if (argc == 1) { int type = get_str_index(argv[0], cmd_store_list); if (type >= 0) { @@ -1412,6 +1412,10 @@ VNA_SHELL_FUNCTION(cmd_trace) case 2: set_subtract_storage(); goto update; + case 3: + for (int i=0;i>2) ; diff --git a/ui_sa.c b/ui_sa.c index 7bff292..4c4e3c9 100644 --- a/ui_sa.c +++ b/ui_sa.c @@ -1183,6 +1183,7 @@ static UI_FUNCTION_ADV_CALLBACK(menu_linear_averaging_acb) return; } linear_averaging = ! linear_averaging; + dirty = true; // menu_move_back(); ui_mode_normal(); }