@ -1312,10 +1312,11 @@ static const int wfm_modulation[5] = { 0, 190, 118, -118, -190 }; // 5 step wi
deviceRSSI_tage[POINTS_COUNT];
staticfloatold_a=-150;// cached value to reduce writes to level registers
staticfloatcorrect_RSSI;
staticpureRSSI_tcorrect_RSSI;
staticpureRSSI_tcorrect_RSSI_sweep;
systime_tstart_of_sweep_timestamp;
float perform(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
pureRSSI_t perform(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
{
if(i==0&&dirty){// if first point in scan and dirty
apply_settings();// Initialize HW
@ -1432,14 +1433,17 @@ float perform(bool break_on_operation, int i, uint32_t f, int tracking) // M
// chThdSleepMicroseconds(200);
}
}
// Calculate the RSSI correction for later use
if(MODE_INPUT(setting.mode)&&(i==0||setting.frequency_step!=0)){// only cases where the value can change on 0 point of sweep
correct_RSSI=getSI4432_RSSI_correction()
if(MODE_INPUT(setting.mode)){// only cases where the value can change on 0 point of sweep