Skip to content

Commit

Permalink
Fix #434: Don't send tail tone when STE is off
Browse files Browse the repository at this point in the history
  • Loading branch information
egzumer committed Jan 29, 2024
1 parent aa92e93 commit a22760c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,8 @@ void APP_TimeSlice10ms(void)
if (gAlarmState == ALARM_STATE_TXALARM) {
gAlarmState = ALARM_STATE_SITE_ALARM;

RADIO_SendCssTail();
if(gEeprom.TAIL_TONE_ELIMINATION)
RADIO_SendCssTail();
BK4819_SetupPowerAmplifier(0, 0);
BK4819_ToggleGpioOut(BK4819_GPIO1_PIN29_PA_ENABLE, false);
BK4819_Enable_AfDac_DiscMode_TxDsp();
Expand Down
6 changes: 4 additions & 2 deletions radio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,8 @@ void RADIO_SendEndOfTransmission(void)
DTMF_SendEndOfTransmission();

// send the CTCSS/DCS tail tone - allows the receivers to mute the usual FM squelch tail/crash
RADIO_SendCssTail();
if(gEeprom.TAIL_TONE_ELIMINATION)
RADIO_SendCssTail();
RADIO_SetupRegisters(false);
}

Expand All @@ -1035,6 +1036,7 @@ void RADIO_PrepareCssTX(void)

SYSTEM_DelayMs(200);

RADIO_SendCssTail();
if(gEeprom.TAIL_TONE_ELIMINATION)
RADIO_SendCssTail();
RADIO_SetupRegisters(true);
}

0 comments on commit a22760c

Please sign in to comment.