0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-20 06:58:39 +03:00

Fix missing TX audio when apollo quindar PTT ID tones are enabled.

This commit is contained in:
OneOfEleven
2023-10-09 11:00:57 +01:00
parent 16d51300d9
commit aae43131d9
8 changed files with 48 additions and 20 deletions

View File

@ -237,6 +237,10 @@ int MENU_GetLimits(uint8_t Cursor, int32_t *pMin, int32_t *pMax)
case MENU_D_DCD:
case MENU_D_LIVE_DEC:
case MENU_AM:
*pMin = 0;
*pMax = ARRAY_SIZE(g_sub_menu_off_on) - 1;
break;
#ifdef ENABLE_NOAA
case MENU_NOAA_S:
#endif
@ -247,7 +251,7 @@ int MENU_GetLimits(uint8_t Cursor, int32_t *pMin, int32_t *pMax)
case MENU_SCREN:
case MENU_TX_EN:
*pMin = 0;
*pMax = ARRAY_SIZE(g_sub_menu_off_on) - 1;
*pMax = ARRAY_SIZE(g_sub_menu_DIS_EN) - 1;
break;
case MENU_SCR:
@ -656,7 +660,14 @@ 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;
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)
{
g_eeprom.roger_mode = ROGER_MODE_OFF;
break;
}
return;
case MENU_BAT_TXT: