0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-21 07:28:37 +03:00

Sanity check on DTMF hold time

This commit is contained in:
OneOfEleven
2023-10-04 21:29:35 +01:00
parent 5900d46edb
commit fe949d2ae3
10 changed files with 15 additions and 15 deletions

View File

@ -1979,9 +1979,9 @@ void APP_TimeSlice500ms(void)
gCurrentFunction != FUNCTION_TRANSMIT &&
gCurrentFunction != FUNCTION_RECEIVE)
{
if (gDTMF_AUTO_RESET_TIME > 0)
if (gDTMF_auto_reset_time_500ms > 0)
{
if (--gDTMF_AUTO_RESET_TIME == 0)
if (--gDTMF_auto_reset_time_500ms == 0)
{
gDTMF_CallState = DTMF_CALL_STATE_NONE;
gUpdateDisplay = true;
@ -2469,7 +2469,7 @@ Skip:
RADIO_SetupRegisters(true);
gDTMF_AUTO_RESET_TIME = 0;
gDTMF_auto_reset_time_500ms = 0;
gDTMF_CallState = DTMF_CALL_STATE_NONE;
gDTMF_TxStopCountdown_500ms = 0;
gDTMF_IsTx = false;