0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 14:21:25 +03:00

Fixed TX audio bandwidth bug

This commit is contained in:
OneOfEleven 2023-09-25 21:24:50 +01:00
parent 00301e564c
commit b9ab2148fd
5 changed files with 12 additions and 0 deletions

View File

@ -589,6 +589,10 @@ void MENU_AcceptSetting(void)
gDTMF_RecvTimeoutSaved = 0;
gDTMF_ReceivedSaved[0] = '\0';
gSetting_live_DTMF_decoder = gSubMenuSelection;
if (!gSetting_live_DTMF_decoder)
BK4819_DisableDTMF();
gFlagReconfigureVfos = true;
gUpdateStatus = true;
break;
case MENU_D_LIST:

Binary file not shown.

Binary file not shown.

View File

@ -186,6 +186,9 @@ void FUNCTION_Select(FUNCTION_Type_t Function)
}
#endif
// if the DTMF decoder is enabled, it destroys the TX audio !! .. 1of11
BK4819_DisableDTMF();
if (gCurrentVfo->SCRAMBLING_TYPE > 0 && gSetting_ScrambleEnable)
BK4819_EnableScramble(gCurrentVfo->SCRAMBLING_TYPE - 1);
else

View File

@ -762,10 +762,15 @@ void RADIO_SetupRegisters(bool bSwitchToFunction0)
InterruptMask |= BK4819_REG_3F_DTMF_5TONE_FOUND;
}
#else
if (gCurrentFunction != FUNCTION_TRANSMIT && gSetting_live_DTMF_decoder)
{
BK4819_EnableDTMF();
InterruptMask |= BK4819_REG_3F_DTMF_5TONE_FOUND;
}
else
{
BK4819_DisableDTMF();
}
#endif
// enable/disable BK4819 selected interrupts