for(unsigned int i=0;i<sizeof(old_freq)/sizeof(unsignedlong);i++){
old_freq[i]=0;
old_freq[i]=0;
real_old_freq[i]=0;
real_old_freq[i]=0;
}
}
@ -1427,7 +1427,7 @@ void update_rbw(void) // calculate the actual_rbw and the vbwSteps (#
#ifdef __SI4463__
#ifdef __SI4463__
// if (setting.spur_removal && actual_rbw_x10 > 3000) // Will depend on BPF width <------------------ TODO -------------------------
// if (setting.spur_removal && actual_rbw_x10 > 3000) // Will depend on BPF width <------------------ TODO -------------------------
// actual_rbw_x10 = 3000; // if spur suppression reduce max rbw to fit within BPF
// actual_rbw_x10 = 3000; // if spur suppression reduce max rbw to fit within BPF
actual_rbw_x10=SI4463_SET_RBW(actual_rbw_x10);// see what rbw the SI4432 can realize
actual_rbw_x10=set_rbw(actual_rbw_x10);// see what rbw the SI4432 can realize
#endif
#endif
if(setting.frequency_step>0&&MODE_INPUT(setting.mode)){// When doing frequency scanning in input mode
if(setting.frequency_step>0&&MODE_INPUT(setting.mode)){// When doing frequency scanning in input mode
vbwSteps=((int)(2*(setting.vbw_x10+(actual_rbw_x10/2))/actual_rbw_x10));// calculate # steps in between each frequency step due to rbw being less than frequency step
vbwSteps=((int)(2*(setting.vbw_x10+(actual_rbw_x10/2))/actual_rbw_x10));// calculate # steps in between each frequency step due to rbw being less than frequency step
@ -2277,7 +2277,7 @@ sweep_again: // stay in sweep loop when output mo
#ifdef __DEBUG_AGC__ // For debugging the AGC control
#ifdef __DEBUG_AGC__ // For debugging the AGC control
stored_t[i]=(SI4432_Read_Byte(0x69)&0x01f)*3.0-90.0;// Display the AGC value in the stored trace
stored_t[i]=(SI4432_Read_Byte(0x69)&0x01f)*3.0-90.0;// Display the AGC value in the stored trace