diff --git a/nanovna.h b/nanovna.h index 92423f5..c86ea8a 100644 --- a/nanovna.h +++ b/nanovna.h @@ -42,7 +42,7 @@ //#define __ULTRA__ // Add harmonics mode on low input. //#define __ULTRA_SA__ // Adds ADF4351 control for extra high 1st IF stage #define __SPUR__ // Does spur reduction by shifting IF -#define __USE_SERIAL_CONSOLE__ // Enable serial I/O connection (need enable HAL_USE_SERIAL as TRUE in halconf.h) +//#define __USE_SERIAL_CONSOLE__ // Enable serial I/O connection (need enable HAL_USE_SERIAL as TRUE in halconf.h) #define __SI4463__ /* * main.c diff --git a/sa_core.c b/sa_core.c index 9243f8f..f6abfd6 100644 --- a/sa_core.c +++ b/sa_core.c @@ -16,9 +16,9 @@ * Boston, MA 02110-1301, USA. */ -#ifdef __SI4432__ +//#ifdef __SI4432__ #include "si4432.h" // comment out for simulation -#endif +//#endif #include "stdlib.h" #pragma GCC push_options @@ -1438,7 +1438,8 @@ static const unsigned int spur_IF = 433800000; // The IF freque static const unsigned int spur_alternate_IF = 433900000; // if the frequency is found in the spur table use this IF frequency static const int spur_table[] = // Frequencies to avoid { -// 580000, // 433.8 MHz table +#if 1 + // 580000, // 433.8 MHz table // 880000, //? 960000, // 1487000, //? @@ -2492,7 +2493,9 @@ sweep_again: // stay in sweep loop when output mo setting.agc = S_AUTO_OFF; setting.lna = S_AUTO_ON; } +#ifdef __SI4432__ set_AGC_LNA(); +#endif } }