diff --git a/main.c b/main.c index 5547bd6..8749137 100644 --- a/main.c +++ b/main.c @@ -1004,7 +1004,7 @@ VNA_SHELL_FUNCTION(cmd_scan) #ifdef TINYSA4 VNA_SHELL_FUNCTION(cmd_hop) { - freq_t start, stop, step; + freq_t start, stop, step = 0; if (argc < 2 || argc > 4) { shell_printf("usage: hop {start(Hz)} {stop(Hz)} {step(Hz) | points} [outmask]\r\n"); return; diff --git a/sa_core.c b/sa_core.c index 0a08eaa..1aa6a0c 100644 --- a/sa_core.c +++ b/sa_core.c @@ -3323,7 +3323,7 @@ again: // Spur redu } set_freq(ADF4351_LO, target_f); #if 1 // Compensate frequency ADF4350 error with SI4468 - if (actual_rbw_x10 < 1000 || setting.frequency_step < 100000) { //TODO always compensate for the moment as this eliminates artifacts at larger RBW + if (actual_rbw_x10 < 10000 || setting.frequency_step < 100000) { //TODO always compensate for the moment as this eliminates artifacts at larger RBW int32_t error_f = 0; if (real_old_freq[ADF4351_LO] > target_f) { error_f = real_old_freq[ADF4351_LO] - target_f;