pull/34/head
erikkaashoek 3 years ago
parent 767d965e8b
commit a7c6d011b7

@ -423,7 +423,7 @@ VNA_SHELL_FUNCTION(cmd_leveloffset)
case 3: config.receive_switch_offset = v; break;
#endif
#ifdef TINYSA4
case 0: config.low_level_offset = v; break;
case 0: config.low_level_offset = v; config.input_is_calibrated = true; break;
case 1: config.switch_offset = v; break;
case 2: config.receive_switch_offset = v; break;
case 3: config.out_switch_offset = v; break;
@ -449,7 +449,7 @@ VNA_SHELL_FUNCTION(cmd_leveloffset)
if (argc == 3 && get_str_index(argv[1], "output") == 0){
v = my_atof(argv[2]);
switch (mode){
case 0: config.low_level_output_offset = v; break;
case 0: config.low_level_output_offset = v; config.output_is_calibrated = true; break;
case 1: config.high_level_output_offset = v; break;
#ifdef TINYSA4
case 12: config.direct_level_output_offset = v; break;

@ -823,6 +823,7 @@ static UI_FUNCTION_ADV_CALLBACK(menu_output_level_acb)
float new_offset = uistat.value - (TEST_LEVEL) + old_offset; // calculate offset based on difference between measured peak level and known peak level
if (uistat.value == 100) { new_offset = 0; config.input_is_calibrated = false; }
if (new_offset > -15 && new_offset < 15) {
config.output_is_calibrated = true;
config.low_level_output_offset = new_offset;
config_save();
}
@ -3867,7 +3868,7 @@ set_numeric_value(void)
break;
#ifdef TINYSA4
case KM_FREQ_CORR:
set_actual_freq(uistat.value);
set_freq_corr(uistat.value);
break;
#else
case KM_10MHZ:

Loading…
Cancel
Save

Powered by TurnKey Linux.