Reverted error_f calculation

multi_trace
erikkaashoek 5 years ago
parent ab351fa092
commit aee77ff8a7

@ -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;

@ -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;

Loading…
Cancel
Save

Powered by TurnKey Linux.