@ -2675,7 +2675,7 @@ void update_rbw(void) // calculate the actual_rbw and the vbwSteps (#
if(temp_actual_rbw_x10==0){// if auto rbw
if(setting.step_delay_mode==SD_FAST){// if in fast scanning
temp_actual_rbw_x10=2*frequency_step_x10;
temp_actual_rbw_x10=frequency_step_x10;
// } else if (setting.step_delay_mode==SD_PRECISE) {
// temp_actual_rbw_x10 = 4*frequency_step_x10;
}else{
@ -3450,6 +3450,9 @@ bool depth_error = false;
staticfloatold_temp=0.0;
#endif
#define TRACE(X) // { DAC->DHR12R1 = (X*400); }
pureRSSI_tperform(boolbreak_on_operation,inti,freq_tf,inttracking)// Measure the RSSI for one frequency, used from sweep and other measurement routines. Must do all HW setup
{
@ -3469,6 +3472,7 @@ pureRSSI_t perform(bool break_on_operation, int i, freq_t f, int tracking) /
calculate_static_correction();// In case temperature changed.
}
#endif
TRACE(10);
if(i==0&&dirty){// if first point in scan and dirty
#ifdef __ADF4351__
clear_frequency_cache();
@ -3597,6 +3601,7 @@ pureRSSI_t perform(bool break_on_operation, int i, freq_t f, int tracking) /
for(intt=0;t<TRACES_MAX;t++)
setting.scan_after_dirty[t]+=1;
}
TRACE(0);
// --------------------------------- Pulse at start of low output sweep --------------------------
if((setting.mode==M_GENLOW||(setting.pulse&&setting.mode==M_LOW))&&(setting.frequency_step!=0||setting.level_sweep!=0.0)){// pulse high out