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

Fix PTT bug

This commit is contained in:
OneOfEleven
2023-10-10 00:56:55 +01:00
parent 79dae75556
commit 023e7b6ee3
8 changed files with 18 additions and 22 deletions

View File

@ -823,21 +823,19 @@ void MAIN_ProcessKeys(key_code_t Key, bool key_pressed, bool key_held)
if (g_dtmf_input_mode)
{
if (key_pressed && !key_held)
{
const char Character = DTMF_GetCharacter(Key);
if (Character != 0xFF)
{ // add key to DTMF string
const char Character = DTMF_GetCharacter(Key);
if (Character != 0xFF)
{ // add key to DTMF string
if (key_pressed && !key_held)
{
DTMF_Append(Character);
g_key_input_count_down = key_input_timeout_500ms;
// g_ptt_was_released = true; // why is this being set ?
//g_ptt_was_released = true; // why is this being set ?
g_beep_to_play = BEEP_1KHZ_60MS_OPTIONAL;
g_request_display_screen = DISPLAY_MAIN;
}
return;
}
return;
}
switch (Key)