Merge DiSlord

Removed_REF_marker
erikkaashoek 5 years ago
parent 1ebb1c0a5b
commit aab365f67d

@ -171,7 +171,6 @@ void reset_settings(int m)
drive_dBm = (float *) (setting.mode == M_GENHIGH && config.high_out_adf4350 ? adf_drive_dBm : si_drive_dBm); drive_dBm = (float *) (setting.mode == M_GENHIGH && config.high_out_adf4350 ? adf_drive_dBm : si_drive_dBm);
#endif #endif
update_min_max_freq(); update_min_max_freq();
disable_waterfall();
sweep_mode |= SWEEP_ENABLE; sweep_mode |= SWEEP_ENABLE;
setting.unit_scale_index = 0; setting.unit_scale_index = 0;
setting.unit_scale = 1; setting.unit_scale = 1;
@ -1092,7 +1091,7 @@ void set_unit(int u)
} }
const float unit_scale_value[]={ 1, 0.001, 0.000001, 0.000000001, 0.000000000001}; const float unit_scale_value[]={ 1, 0.001, 0.000001, 0.000000001, 0.000000000001};
const char unit_scale_text[]= {' ', 'm', '\035', 'n', 'p'}; const char unit_scale_text[]= {' ', 'm', '\035', 'n', 'p'};
void user_set_reflevel(float level) void user_set_reflevel(float level)
{ {
@ -4376,6 +4375,9 @@ void self_test(int test)
else else
goto resume; goto resume;
} }
// Disable waterfall on selftest
if (setting.waterfall)
disable_waterfall();
reset_settings(M_LOW); // Make sure we are in a defined state reset_settings(M_LOW); // Make sure we are in a defined state
in_selftest = true; in_selftest = true;
menu_autosettings_cb(0, 0); menu_autosettings_cb(0, 0);

Loading…
Cancel
Save

Powered by TurnKey Linux.