Fix #434: Don't send tail tone when STE is off

This commit is contained in:
Krzysiek Egzmont 2024-01-29 22:48:37 +01:00
parent aa92e93c56
commit a22760c0b4
2 changed files with 6 additions and 3 deletions

View File

@ -1173,6 +1173,7 @@ void APP_TimeSlice10ms(void)
if (gAlarmState == ALARM_STATE_TXALARM) { if (gAlarmState == ALARM_STATE_TXALARM) {
gAlarmState = ALARM_STATE_SITE_ALARM; gAlarmState = ALARM_STATE_SITE_ALARM;
if(gEeprom.TAIL_TONE_ELIMINATION)
RADIO_SendCssTail(); RADIO_SendCssTail();
BK4819_SetupPowerAmplifier(0, 0); BK4819_SetupPowerAmplifier(0, 0);
BK4819_ToggleGpioOut(BK4819_GPIO1_PIN29_PA_ENABLE, false); BK4819_ToggleGpioOut(BK4819_GPIO1_PIN29_PA_ENABLE, false);

View File

@ -1025,6 +1025,7 @@ void RADIO_SendEndOfTransmission(void)
DTMF_SendEndOfTransmission(); DTMF_SendEndOfTransmission();
// send the CTCSS/DCS tail tone - allows the receivers to mute the usual FM squelch tail/crash // send the CTCSS/DCS tail tone - allows the receivers to mute the usual FM squelch tail/crash
if(gEeprom.TAIL_TONE_ELIMINATION)
RADIO_SendCssTail(); RADIO_SendCssTail();
RADIO_SetupRegisters(false); RADIO_SetupRegisters(false);
} }
@ -1035,6 +1036,7 @@ void RADIO_PrepareCssTX(void)
SYSTEM_DelayMs(200); SYSTEM_DelayMs(200);
if(gEeprom.TAIL_TONE_ELIMINATION)
RADIO_SendCssTail(); RADIO_SendCssTail();
RADIO_SetupRegisters(true); RADIO_SetupRegisters(true);
} }