0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-18 22:29:50 +03:00

fix side-butt TX tone

This commit is contained in:
OneOfEleven
2023-12-08 17:43:01 +00:00
parent ade0b61c67
commit 3dc430905d
18 changed files with 205 additions and 167 deletions

View File

@ -114,7 +114,7 @@ void draw_bar(uint8_t *line, const int len, const int max_width)
if (g_dtmf_call_state != DTMF_CALL_STATE_NONE)
return false;
#if defined(ENABLE_ALARM) || defined(ENABLE_TX1750)
#if defined(ENABLE_ALARM) || (ENABLE_TX_TONE_HZ > 0)
if (g_alarm_state != ALARM_STATE_OFF)
return false;
#endif

View File

@ -401,7 +401,7 @@ const char g_sub_menu_side_butt[9][16] =
"VOX\non\\off",
"ALARM\non\\off",
"FM RADIO\non\\off",
"TX\n1750Hz",
"TX\nTONE",
// "2nd PTT",
};
#endif
@ -1192,6 +1192,10 @@ void UI_DisplayMenu(void)
case MENU_SIDE2_SHORT:
case MENU_SIDE2_LONG:
strcpy(str, g_sub_menu_side_butt[g_sub_menu_selection]);
#if defined(ENABLE_TX_TONE_HZ) && (ENABLE_TX_TONE_HZ > 0)
if (g_sub_menu_selection == ACTION_OPT_TX_TONE)
sprintf(str + strlen(str), "\n%uHz", ENABLE_TX_TONE_HZ);
#endif
break;
#endif