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

Live DTMF decoder update

This commit is contained in:
OneOfEleven
2023-09-16 23:08:57 +01:00
parent 3c1a70a11f
commit 079236f4aa
11 changed files with 64 additions and 17 deletions

12
radio.c
View File

@ -687,11 +687,13 @@ void RADIO_SetupRegisters(bool bSwitchToFunction0)
BK4819_SetCompander(!gRxVfo->IsAM ? gRxVfo->Compander : 0);
#endif
if (gRxVfo->IsAM || (!gRxVfo->DTMF_DECODING_ENABLE && !gSetting_KILLED))
{
BK4819_DisableDTMF();
}
else
#ifndef ENABLE_DTMF_DECODER
if (gRxVfo->IsAM || (!gRxVfo->DTMF_DECODING_ENABLE && !gSetting_KILLED))
{
BK4819_DisableDTMF();
}
else
#endif
{
BK4819_EnableDTMF();
InterruptMask |= BK4819_REG_3F_DTMF_5TONE_FOUND;