Skip to content

Commit

Permalink
Fix #193: DTMF interrupt temporarily disabled after TX causing DTMF t…
Browse files Browse the repository at this point in the history
…ones lost
  • Loading branch information
egzumer committed Jan 13, 2024
1 parent ea3b5b2 commit f8ff71a
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -698,24 +698,8 @@ void RADIO_SetupRegisters(bool switchToForeground)
// RX expander
BK4819_SetCompander((gRxVfo->Modulation == MODULATION_FM && gRxVfo->Compander >= 2) ? gRxVfo->Compander : 0);

#if 0
if (!gRxVfo->DTMF_DECODING_ENABLE && !gSetting_KILLED)
{
BK4819_DisableDTMF();
}
else
{
BK4819_EnableDTMF();
InterruptMask |= BK4819_REG_3F_DTMF_5TONE_FOUND;
}
#else
BK4819_DisableDTMF();

if (gCurrentFunction != FUNCTION_TRANSMIT) {
BK4819_EnableDTMF();
InterruptMask |= BK4819_REG_3F_DTMF_5TONE_FOUND;
}
#endif
BK4819_EnableDTMF();
InterruptMask |= BK4819_REG_3F_DTMF_5TONE_FOUND;

RADIO_SetupAGC(gRxVfo->Modulation == MODULATION_AM, false);

Expand Down

0 comments on commit f8ff71a

Please sign in to comment.