if(setting.average==v)// Clear calc on second click
dirty=true;
setting.average=v;
trace[TRACE_TEMP].enabled=((v!=0)
@ -2512,6 +2512,7 @@ int test_output = false;
inttest_output_switch=false;
inttest_output_drive=0;
inttest_output_attenuate=0;
intstart_temperature=0;
#endif
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
@ -2557,8 +2558,10 @@ pureRSSI_t perform(bool break_on_operation, int i, freq_t f, int tracking) /
if(!in_selftest)clock_above_48MHz();
is_below=false;
correct_RSSI_freq=get_frequency_correction(f);// for i == 0 and freq_step == 0;
}else
}else{
clock_at_48MHz();
start_temperature=Si446x_get_temp();
}
// if (MODE_OUTPUT(setting.mode) && setting.additional_step_delay_us < 500) // Minimum wait time to prevent LO from lockup during output frequency sweep
// setting.additional_step_delay_us = 500;
// Update grid and status after
@ -2626,6 +2629,7 @@ pureRSSI_t perform(bool break_on_operation, int i, freq_t f, int tracking) /
correct_RSSI_freq=get_frequency_correction(f);
a+=PURE_TO_float(correct_RSSI_freq);
#ifdef TINYSA4
a+=(Si446x_get_temp()-34.0)*0.0433;// Temperature correction
a+=3.0;// Always 3dB in attenuator
#endif
if(a!=old_a){
@ -2695,6 +2699,10 @@ pureRSSI_t perform(bool break_on_operation, int i, freq_t f, int tracking) /
}
elseif(setting.mode==M_GENHIGH){
floata=setting.level-level_max();
#ifdef TINYSA4
if(!config.high_out_adf4350)
a+=(Si446x_get_temp()-34.0)*0.0433;// Temperature correction