0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 14:48:03 +03:00

Menu wordings + on-screen message when PC config upload/download

This commit is contained in:
OneOfEleven
2023-10-09 12:39:47 +01:00
parent aae43131d9
commit 6b42315330
9 changed files with 64 additions and 22 deletions

View File

@ -661,9 +661,9 @@ void MENU_AcceptSetting(void)
case MENU_PTT_ID:
g_tx_vfo->dtmf_ptt_id_tx_mode = g_sub_menu_selection;
g_request_save_channel = 1;
if (g_sub_menu_selection == PTT_ID_TX_DOWN ||
g_sub_menu_selection == PTT_ID_BOTH ||
g_sub_menu_selection == PTT_ID_APOLLO)
if (g_tx_vfo->dtmf_ptt_id_tx_mode == PTT_ID_TX_DOWN ||
g_tx_vfo->dtmf_ptt_id_tx_mode == PTT_ID_BOTH ||
g_tx_vfo->dtmf_ptt_id_tx_mode == PTT_ID_APOLLO)
{
g_eeprom.roger_mode = ROGER_MODE_OFF;
break;
@ -708,6 +708,16 @@ void MENU_AcceptSetting(void)
case MENU_ROGER:
g_eeprom.roger_mode = g_sub_menu_selection;
if (g_eeprom.roger_mode != ROGER_MODE_OFF)
{
if (g_tx_vfo->dtmf_ptt_id_tx_mode == PTT_ID_TX_DOWN ||
g_tx_vfo->dtmf_ptt_id_tx_mode == PTT_ID_BOTH ||
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 = 1;
}
}
break;
case MENU_AM:

View File

@ -235,7 +235,7 @@ static void CMD_0514(const uint8_t *pBuffer)
g_fm_radio_count_down_500ms = fm_radio_countdown_500ms;
#endif
g_serial_config_count_down_500ms = 12; // 6 sec
g_serial_config_count_down_500ms = serial_config_count_down_500ms;
// turn the LCD backlight off
GPIO_ClearBit(&GPIOB->DATA, GPIOB_PIN_BACKLIGHT);
@ -252,7 +252,7 @@ static void CMD_051B(const uint8_t *pBuffer)
if (pCmd->Timestamp != Timestamp)
return;
g_serial_config_count_down_500ms = 12; // 6 sec
g_serial_config_count_down_500ms = serial_config_count_down_500ms;
#ifdef ENABLE_FMRADIO
g_fm_radio_count_down_500ms = fm_radio_countdown_500ms;
@ -283,7 +283,7 @@ static void CMD_051D(const uint8_t *pBuffer)
if (pCmd->Timestamp != Timestamp)
return;
g_serial_config_count_down_500ms = 12; // 6 sec
g_serial_config_count_down_500ms = serial_config_count_down_500ms;
bReloadEeprom = false;
@ -408,7 +408,7 @@ static void CMD_052F(const uint8_t *pBuffer)
if (g_current_function == FUNCTION_POWER_SAVE)
FUNCTION_Select(FUNCTION_FOREGROUND);
g_serial_config_count_down_500ms = 12; // 6 sec
g_serial_config_count_down_500ms = serial_config_count_down_500ms;
Timestamp = pCmd->Timestamp;