mirror of
https://github.com/egzumer/uv-k5-firmware-custom
synced 2024-11-21 17:19:57 +00:00
Fix #434: Don't send tail tone when STE is off
This commit is contained in:
parent
aa92e93c56
commit
a22760c0b4
@ -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);
|
||||||
|
2
radio.c
2
radio.c
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user