mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-19 06:39:49 +03:00
Each channel can now have it's own squelch level setting
This commit is contained in:
28
app/menu.c
28
app/menu.c
@ -395,19 +395,19 @@ void MENU_AcceptSetting(void)
|
||||
|
||||
case MENU_CHAN_SQL:
|
||||
g_tx_vfo->squelch_level = g_sub_menu_selection;
|
||||
g_request_save_channel = IS_FREQ_CHANNEL(g_tx_vfo->channel_save) ? 2 : 1;
|
||||
g_vfo_configure_mode = VFO_CONFIGURE_RELOAD;
|
||||
g_request_save_channel = 1;
|
||||
g_vfo_configure_mode = VFO_CONFIGURE;
|
||||
return;
|
||||
|
||||
case MENU_STEP:
|
||||
g_tx_vfo->step_setting = step_freq_table_sorted[g_sub_menu_selection];
|
||||
g_request_save_channel = IS_FREQ_CHANNEL(g_tx_vfo->channel_save) ? 2 : 1;
|
||||
g_request_save_channel = 1;
|
||||
g_vfo_configure_mode = VFO_CONFIGURE_RELOAD;
|
||||
return;
|
||||
|
||||
case MENU_TX_POWER:
|
||||
g_tx_vfo->output_power = g_sub_menu_selection;
|
||||
g_request_save_channel = IS_FREQ_CHANNEL(g_tx_vfo->channel_save) ? 2 : 1;
|
||||
g_request_save_channel = 1;
|
||||
g_vfo_configure_mode = VFO_CONFIGURE_RELOAD;
|
||||
return;
|
||||
|
||||
@ -478,17 +478,17 @@ void MENU_AcceptSetting(void)
|
||||
|
||||
case MENU_SHIFT_DIR:
|
||||
g_tx_vfo->tx_offset_freq_dir = g_sub_menu_selection;
|
||||
g_request_save_channel = IS_FREQ_CHANNEL(g_tx_vfo->channel_save) ? 2 : 1;
|
||||
g_request_save_channel = 1;
|
||||
return;
|
||||
|
||||
case MENU_OFFSET:
|
||||
g_tx_vfo->tx_offset_freq = g_sub_menu_selection;
|
||||
g_request_save_channel = IS_FREQ_CHANNEL(g_tx_vfo->channel_save) ? 2 : 1;
|
||||
g_request_save_channel = 1;
|
||||
return;
|
||||
|
||||
case MENU_BANDWIDTH:
|
||||
g_tx_vfo->channel_bandwidth = g_sub_menu_selection;
|
||||
g_request_save_channel = IS_FREQ_CHANNEL(g_tx_vfo->channel_save) ? 2 : 1;
|
||||
g_request_save_channel = 1;
|
||||
return;
|
||||
|
||||
case MENU_SCRAMBLER:
|
||||
@ -504,7 +504,7 @@ void MENU_AcceptSetting(void)
|
||||
|
||||
case MENU_BUSY_CHAN_LOCK:
|
||||
g_tx_vfo->busy_channel_lock = g_sub_menu_selection;
|
||||
g_request_save_channel = IS_FREQ_CHANNEL(g_tx_vfo->channel_save) ? 2 : 1;
|
||||
g_request_save_channel = 1;
|
||||
return;
|
||||
|
||||
case MENU_MEM_SAVE:
|
||||
@ -547,7 +547,7 @@ void MENU_AcceptSetting(void)
|
||||
g_eeprom.vox_level = g_sub_menu_selection - 1;
|
||||
BOARD_EEPROM_LoadCalibration();
|
||||
g_flag_reconfigure_vfos = true;
|
||||
g_update_status = true;
|
||||
g_update_status = true;
|
||||
break;
|
||||
#endif
|
||||
|
||||
@ -658,7 +658,7 @@ void MENU_AcceptSetting(void)
|
||||
#endif
|
||||
|
||||
case MENU_COMPAND:
|
||||
g_tx_vfo->compand = g_sub_menu_selection;
|
||||
g_tx_vfo->compand = g_sub_menu_selection;
|
||||
#if 1
|
||||
g_request_save_channel = 1;
|
||||
#else
|
||||
@ -706,7 +706,7 @@ void MENU_AcceptSetting(void)
|
||||
g_eeprom.roger_mode = ROGER_MODE_OFF;
|
||||
break;
|
||||
}
|
||||
g_request_save_channel = IS_FREQ_CHANNEL(g_tx_vfo->channel_save) ? 2 : 1;
|
||||
g_request_save_channel = 1;
|
||||
return;
|
||||
|
||||
case MENU_BAT_TXT:
|
||||
@ -716,7 +716,7 @@ void MENU_AcceptSetting(void)
|
||||
case MENU_DTMF_DCD:
|
||||
g_tx_vfo->dtmf_decoding_enable = g_sub_menu_selection;
|
||||
DTMF_clear_RX();
|
||||
g_request_save_channel = IS_FREQ_CHANNEL(g_tx_vfo->channel_save) ? 2 : 1;
|
||||
g_request_save_channel = 1;
|
||||
return;
|
||||
|
||||
case MENU_DTMF_LIVE_DEC:
|
||||
@ -754,14 +754,14 @@ void MENU_AcceptSetting(void)
|
||||
g_tx_vfo->dtmf_ptt_id_tx_mode == PTT_ID_APOLLO)
|
||||
{
|
||||
g_tx_vfo->dtmf_ptt_id_tx_mode = PTT_ID_OFF; // // disable PTT ID tail
|
||||
g_request_save_channel = IS_FREQ_CHANNEL(g_tx_vfo->channel_save) ? 2 : 1;
|
||||
g_request_save_channel = 1;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case MENU_MOD_MODE:
|
||||
g_tx_vfo->am_mode = g_sub_menu_selection;
|
||||
g_request_save_channel = IS_FREQ_CHANNEL(g_tx_vfo->channel_save) ? 2 : 1;
|
||||
g_request_save_channel = 1;
|
||||
return;
|
||||
|
||||
#ifdef ENABLE_AM_FIX
|
||||
|
Reference in New Issue
Block a user