Name change

pull/34/head
erikkaashoek 4 years ago
parent ba756ede93
commit 7bc20dc1f6

@ -1184,7 +1184,7 @@ typedef struct setting
int R; // KM_R int R; // KM_R
int32_t exp_aver; int32_t exp_aver;
bool increased_R; bool increased_R;
bool clean_output; bool mixer_output;
#endif #endif
int64_t test_argument; // used for tests int64_t test_argument; // used for tests
uint32_t checksum; // must be last and at 4 byte boundary uint32_t checksum; // must be last and at 4 byte boundary

@ -3025,7 +3025,7 @@ pureRSSI_t perform(bool break_on_operation, int i, freq_t f, int tracking) /
int modulation_count_iter = 0; int modulation_count_iter = 0;
int spur_second_pass = false; int spur_second_pass = false;
#ifdef __NEW_SWITCHES__ #ifdef __NEW_SWITCHES__
int direct = ((setting.mode == M_LOW && config.direct && f > DIRECT_START && f<DIRECT_STOP) || (setting.mode == M_GENLOW && f >= MINIMUM_DIRECT_FREQ && f < ultra_start && setting.clean_output) ); int direct = ((setting.mode == M_LOW && config.direct && f > DIRECT_START && f<DIRECT_STOP) || (setting.mode == M_GENLOW && f >= MINIMUM_DIRECT_FREQ && f < ultra_start) );
#else #else
const int direct = false; const int direct = false;
#endif #endif
@ -3441,7 +3441,7 @@ modulation_again:
#endif #endif
} }
} else if (setting.mode == M_GENLOW) { } else if (setting.mode == M_GENLOW) {
if (ultra && (f > ultra_start || (!setting.clean_output && f > 800000000))) { // Ultra mode output using both SI and ADF if (ultra && (f > ultra_start || (!setting.mixer_output && f > MAX_LOW_OUTPUT_FREQ))) { // Ultra mode output using both SI and ADF
if (!SI4463_is_in_tx_mode()) if (!SI4463_is_in_tx_mode())
SI4463_init_tx(); SI4463_init_tx();
enable_ADF_output(true); enable_ADF_output(true);

@ -1014,10 +1014,17 @@ static UI_FUNCTION_ADV_CALLBACK(menu_listen_acb)
#ifdef TINYSA4 #ifdef TINYSA4
static UI_FUNCTION_ADV_CALLBACK(menu_lowoutput_settings_acb) static UI_FUNCTION_ADV_CALLBACK(menu_lowoutput_settings_acb)
{ {
static char mode_string[26];
(void)item; (void)item;
if (b){ if (b){
if (data == 255) { b->param_1.text = setting.clean_output ? "CLEAN" : "ACCURATE"; return; } if (data == 255) {
b->icon = data == setting.clean_output ? BUTTON_ICON_GROUP_CHECKED : BUTTON_ICON_GROUP; plot_printf(mode_string, sizeof mode_string, "%s %s %s",
(get_sweep_frequency(ST_START) < MINIMUM_DIRECT_FREQ ? "SINUS" : "" ),
(get_sweep_frequency(ST_STOP) >= MINIMUM_DIRECT_FREQ ? "SQUARE WAVE" : ""),
(get_sweep_frequency(ST_STOP) > MAX_LOW_OUTPUT_FREQ && setting.mixer_output ? "MIXER" : ""));
b->param_1.text = mode_string;
return; }
b->icon = data == setting.mixer_output ? BUTTON_ICON_GROUP_CHECKED : BUTTON_ICON_GROUP;
return; return;
} }
switch(data) { switch(data) {
@ -1025,10 +1032,10 @@ static UI_FUNCTION_ADV_CALLBACK(menu_lowoutput_settings_acb)
menu_push_submenu(menu_lowoutput_settings); menu_push_submenu(menu_lowoutput_settings);
return; return;
case 0: case 0:
setting.clean_output = false; setting.mixer_output = false;
break; break;
case 1: case 1:
setting.clean_output = true; setting.mixer_output = true;
break; break;
} }
menu_move_back(false); menu_move_back(false);
@ -2510,8 +2517,8 @@ static const menuitem_t menu_sweep[] = {
}; };
#ifdef TINYSA4 #ifdef TINYSA4
static const menuitem_t menu_lowoutput_settings[] = { static const menuitem_t menu_lowoutput_settings[] = {
{ MT_FORM | MT_ADV_CALLBACK, 1, "OPTIMIZE FOR CLEAN SIGNAL", menu_lowoutput_settings_acb}, { MT_FORM | MT_ADV_CALLBACK, 1, "SQUARE WAVE max 4.4GHz", menu_lowoutput_settings_acb},
{ MT_FORM | MT_ADV_CALLBACK, 0, "OPTIMIZE FOR ACCURATE SIGNAL", menu_lowoutput_settings_acb}, { MT_FORM | MT_ADV_CALLBACK, 0, "MIXER max 5.4GHz", menu_lowoutput_settings_acb},
{ MT_FORM | MT_SUBMENU, 255, S_RARROW" Settings", menu_settings}, { MT_FORM | MT_SUBMENU, 255, S_RARROW" Settings", menu_settings},
{ MT_FORM | MT_NONE, 0, NULL, menu_back} // next-> menu_back { MT_FORM | MT_NONE, 0, NULL, menu_back} // next-> menu_back
}; };
@ -2532,7 +2539,7 @@ const menuitem_t menu_lowoutputmode[] = {
#endif #endif
{ MT_FORM | MT_KEYPAD, KM_EXT_GAIN, "EXTERNAL GAIN: %s", "-100..+100"}, { MT_FORM | MT_KEYPAD, KM_EXT_GAIN, "EXTERNAL GAIN: %s", "-100..+100"},
#ifdef TINYSA4 #ifdef TINYSA4
{ MT_FORM | MT_ADV_CALLBACK, 255, "OPTIMIZE: %s", menu_lowoutput_settings_acb}, { MT_FORM | MT_ADV_CALLBACK, 255, "OUTPUT: %s", menu_lowoutput_settings_acb},
#endif #endif
{ MT_FORM | MT_CANCEL, 0, "MODE", NULL }, { MT_FORM | MT_CANCEL, 0, "MODE", NULL },
{ MT_FORM | MT_NONE, 0, NULL, NULL } // sentinel { MT_FORM | MT_NONE, 0, NULL, NULL } // sentinel

Loading…
Cancel
Save

Powered by TurnKey Linux.