diff --git a/nanovna.h b/nanovna.h index 883b830..404f579 100644 --- a/nanovna.h +++ b/nanovna.h @@ -47,7 +47,7 @@ #define __SI4468__ #define DEFAULT_IF 978000000 -#define DEFAULT_SPUR_IF 978000000 +#define DEFAULT_SPUR_IF 979000000 #define DEFAULT_MAX_FREQ 800000000 #define HIGH_MIN_FREQ_MHZ 110 #define HIGH_MAX_FREQ_MHZ 1200 diff --git a/sa_core.c b/sa_core.c index d33f315..0e0d8a9 100644 --- a/sa_core.c +++ b/sa_core.c @@ -1501,6 +1501,7 @@ static const int spur_table[] = // Frequencies t { 117716000, 746083000, + 1956000000, #if 0 // 580000, // 433.8 MHz table // 880000, //? @@ -1593,7 +1594,7 @@ int avoid_spur(int f) // find if this frequency should be avoi // int window = ((int)actual_rbw ) * 1000*2; // if (window < 50000) // window = 50000; - if (setting.mode != M_LOW || !setting.auto_IF || actual_rbw_x10 > 3000) + if (setting.mode != M_LOW || !setting.auto_IF) return(false); return binary_search(f); } @@ -1950,7 +1951,7 @@ modulation_again: set_freq (ADF4351_LO2, config.frequency_IF2 - local_IF); // Down from IF2 to fixed second IF in Ultra SA mode } if (!setting.tracking && S_STATE(setting.below_IF)) { // if in low input mode and below IF - if (lf > extra_IF) + if (lf > extra_IF + 138000000) set_freq (ADF4351_LO, lf - extra_IF); // set LO SI4432 to below IF frequency else set_freq (ADF4351_LO, extra_IF-lf); // set LO SI4432 to below IF frequency diff --git a/si4432.c b/si4432.c index f6f99df..b5ebcf6 100644 --- a/si4432.c +++ b/si4432.c @@ -1006,7 +1006,7 @@ void ADF4351_set_frequency(int channel, uint32_t freq, int drive) // freq / 10H { // freq -= 71000; - uint32_t offs = ((freq / 1000)* 4) / 1000; + uint32_t offs = ((freq / 1000)* ( 0) )/ 1000; // uint32_t offs = 0; ADF4351_prep_frequency(channel,freq + offs, drive); //START_PROFILE;