From 2387c78ef6d6b2a96b6e332d3938e6da3ec38c9e Mon Sep 17 00:00:00 2001 From: DiSlord Date: Mon, 6 Jul 2020 00:25:14 +0300 Subject: [PATCH] setting.frequency_step now uint32_t --- nanovna.h | 2 +- sa_cmd.c | 6 +++--- sa_core.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/nanovna.h b/nanovna.h index 281a0e1..0cfa323 100644 --- a/nanovna.h +++ b/nanovna.h @@ -593,7 +593,7 @@ typedef struct setting int tracking; int modulation; int step_delay; - int frequency_step; + uint32_t frequency_step; int test; int harmonic; int decay; diff --git a/sa_cmd.c b/sa_cmd.c index c50b4de..a9bbe5c 100644 --- a/sa_cmd.c +++ b/sa_cmd.c @@ -549,9 +549,9 @@ VNA_SHELL_FUNCTION(cmd_scanraw) if (argc == 3) { points = my_atoi(argv[2]); } - int old_step = setting.frequency_step; + uint32_t old_step = setting.frequency_step; float f_step = (stop-start)/ points; - setting.frequency_step = (int32_t)f_step; + setting.frequency_step = (uint32_t)f_step; streamPut(shell_stream, '{'); static uint32_t old_start=0, old_stop=0, old_points=0; @@ -565,7 +565,7 @@ VNA_SHELL_FUNCTION(cmd_scanraw) for (uint32_t i = 0; i= 1910) { SI4432_step_delay = 280; SI4432_offset_delay = 100; }