Restore settings after calibration

multi_trace
erikkaashoek 5 years ago
parent 74f1a839e2
commit a0c410fbcc

@ -1713,9 +1713,10 @@ static void cell_draw_marker_info(int x0, int y0)
uint16_t color;
int level = temppeakLevel - get_attenuation() + setting.external_gain;
if ((!setting.subtract_stored) && // Disabled when normalized
((setting.mode == M_LOW && level > -10) ||
(setting.mode == M_HIGH && level > -29) ||
(setting.mode == M_LOW && (markers[i].mtype & M_NOISE) && vbwSteps > 1))) //MAXPEAK increases noise marker, should reduce span.
((setting.mode == M_LOW && level > -10)
|| (setting.mode == M_HIGH && level > -29)
|| (setting.mode == M_LOW && (markers[i].mtype & M_NOISE) && vbwSteps > 1)) //MAXPEAK increases noise marker, should reduce span.
)
color = LCD_BRIGHT_COLOR_RED;
else
color = marker_color(markers[i].mtype);

@ -5911,6 +5911,7 @@ again:
#if 1
reset_settings(M_LOW);
set_refer_output(0);
set_attenuation(10);
set_sweep_frequency(ST_STOP, 60000000);
int test_case = TEST_POWER;
#ifdef TINYSA4
@ -6023,11 +6024,14 @@ quit:
in_selftest = false;
sweep_mode = SWEEP_ENABLE;
// set_refer_output(-1);
// reset_settings(M_LOW);
#ifdef TINYSA4
set_extra_lna(false);
#endif
set_average(AV_OFF);
// set_refer_output(-1);
#else
reset_settings(M_LOW);
set_refer_output(-1);
#endif
}

Loading…
Cancel
Save

Powered by TurnKey Linux.