@ -1371,31 +1371,41 @@ search_maximum(int m, int center, int span)
//static int spur_old_stepdelay = 0;
staticconstunsignedintspur_IF=433800000;// The IF frequency for which the spur table is value
staticconstunsignedintspur_alternate_IF=433900000;// if the frequency is found in the spur table use this IF frequency
staticconstunsignedintspur_alternate_IF=434000000;// if the frequency is found in the spur table use this IF frequency
staticconstintspur_table[]=// Frequencies to avoid
{
580000, // 433.8 MHz table
961000,
// 580000, // 433.8 MHz table
960000,
1600000,
1837000, // Real signal
2755000, // Real signal
2760000,
2961000,
// 1837000, // Real signal
// 2755000, // Real signal
// 2760000,
2960000,
4933000,
4960000,
6961000,
6980000,
6960000,
// 6980000,
8267000,
8961000,
10000000,
8960000,
// 10000000,
10960000,
11600000,
12960000,
14960000,
16960000,
22960000,
18960000,
21600000,
// 22960000,
24960000,
28960000,
29800000,
38105000,
49500000,
// 29800000,
31600000,
34960000,
33930000,
// 38105000,
40960000,
41600000,
49650000,
#ifdef IF_AT_4339
780000,// 433.9MHz table
830000,
@ -1469,6 +1479,7 @@ static float old_a = -150; // cached value to reduce writes to level re
staticpureRSSI_tcorrect_RSSI;
staticpureRSSI_tcorrect_RSSI_freq;
systime_tstart_of_sweep_timestamp;
staticsystime_tsweep_elapsed=0;// Time since first start of sweeping, used only for auto attenuate
pureRSSI_tperform(boolbreak_on_operation,inti,uint32_tf,inttracking)// Measure the RSSI for one frequency, used from sweep and other measurement routines. Must do all HW setup
{
@ -1477,7 +1488,8 @@ pureRSSI_t perform(bool break_on_operation, int i, uint32_t f, int tracking)
apply_settings();// Initialize HW
scandirty=true;// This is the first pass with new settings
dirty=false;
if(setting.spur==-1)setting.spur=1;// ensure spur processing starts in right phase
sweep_elapsed=chVTGetSystemTimeX();// for measuring accumulated time
if(setting.spur==-1)setting.spur=1;// ensure spur processing starts in right phase
// Set for actual time pre calculated value (update after sweep)