|
|
|
@ -2641,8 +2641,8 @@ modulation_again:
|
|
|
|
old_CFGR = orig_CFGR;
|
|
|
|
old_CFGR = orig_CFGR;
|
|
|
|
RCC->CFGR = orig_CFGR;
|
|
|
|
RCC->CFGR = orig_CFGR;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#define IGNORE_RSSI 30000
|
|
|
|
pureRSSI_t rssi = RSSI + correct_RSSI + correct_RSSI_freq; // add correction
|
|
|
|
pureRSSI_t rssi = (RSSI>0 ? RSSI + correct_RSSI + correct_RSSI_freq : IGNORE_RSSI); // add correction
|
|
|
|
if (false) {
|
|
|
|
if (false) {
|
|
|
|
abort:
|
|
|
|
abort:
|
|
|
|
rssi = 0;
|
|
|
|
rssi = 0;
|
|
|
|
@ -2717,8 +2717,11 @@ sweep_again: // stay in sweep loop when output mo
|
|
|
|
// ------------------------- start sweep loop -----------------------------------
|
|
|
|
// ------------------------- start sweep loop -----------------------------------
|
|
|
|
for (int i = 0; i < sweep_points; i++) {
|
|
|
|
for (int i = 0; i < sweep_points; i++) {
|
|
|
|
// --------------------- measure -------------------------
|
|
|
|
// --------------------- measure -------------------------
|
|
|
|
|
|
|
|
pureRSSI_t rssi = perform(break_on_operation, i, frequencies[i], setting.tracking); // Measure RSSI for one of the frequencies
|
|
|
|
RSSI = PURE_TO_float(perform(break_on_operation, i, frequencies[i], setting.tracking)); // Measure RSSI for one of the frequencies
|
|
|
|
if (rssi == IGNORE_RSSI)
|
|
|
|
|
|
|
|
RSSI = -174.0;
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
RSSI = PURE_TO_float(rssi);
|
|
|
|
// if break back to top level to handle ui operation
|
|
|
|
// if break back to top level to handle ui operation
|
|
|
|
if (refreshing)
|
|
|
|
if (refreshing)
|
|
|
|
scandirty = false;
|
|
|
|
scandirty = false;
|
|
|
|
@ -2833,7 +2836,7 @@ sweep_again: // stay in sweep loop when output mo
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (temp_min_level > actual_t[i]) // Remember minimum
|
|
|
|
if ( actual_t[i] > -174.0 && temp_min_level > actual_t[i]) // Remember minimum
|
|
|
|
temp_min_level = actual_t[i];
|
|
|
|
temp_min_level = actual_t[i];
|
|
|
|
|
|
|
|
|
|
|
|
// --------------------------- find peak and add to peak table if found ------------------------
|
|
|
|
// --------------------------- find peak and add to peak table if found ------------------------
|
|
|
|
|