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

fix PTT ID and roger tones

This commit is contained in:
OneOfEleven
2023-10-18 21:22:12 +01:00
parent 44c1cdbe58
commit 9095eba846
5 changed files with 6 additions and 9 deletions

View File

@ -391,9 +391,9 @@ void DTMF_HandleRequest(void)
bool DTMF_Reply(void)
{
uint16_t Delay;
char String[20];
const char *pString = NULL;
const uint16_t Delay = (g_eeprom.dtmf_preload_time < 150) ? 150 : g_eeprom.dtmf_preload_time;
const char *pString = NULL;
char String[20];
switch (g_dtmf_reply_state)
{
@ -439,8 +439,6 @@ bool DTMF_Reply(void)
if (pString == NULL)
return false;
Delay = (g_eeprom.dtmf_preload_time < 200) ? 200 : g_eeprom.dtmf_preload_time;
if (g_eeprom.dtmf_side_tone)
{ // the user will also hear the transmitted tones
GPIO_SetBit(&GPIOC->DATA, GPIOC_PIN_SPEAKER);