mirror of
https://github.com/kamilsss655/uv-k5-firmware-custom
synced 2024-11-22 10:18:15 +00:00
Fix STE not working when TX CTCSS/DCS is off
Reverts:fde690a74a
: app.c50a55e34ab
: radio.c
This commit is contained in:
parent
f3cc0f5acf
commit
20a3e3b605
22
app/app.c
22
app/app.c
@ -773,27 +773,9 @@ static void CheckRadioInterrupts(void)
|
||||
|
||||
void APP_EndTransmission(void)
|
||||
{ // back to RX mode
|
||||
|
||||
RADIO_SendEndOfTransmission();
|
||||
|
||||
if (gCurrentVfo->pTX->CodeType != CODE_TYPE_OFF)
|
||||
{ // CTCSS/DCS is enabled
|
||||
|
||||
//if (gEeprom.TAIL_NOTE_ELIMINATION && gEeprom.REPEATER_TAIL_TONE_ELIMINATION > 0)
|
||||
if (gEeprom.TAIL_TONE_ELIMINATION)
|
||||
{ // send the CTCSS/DCS tail tone - allows the receivers to mute the usual FM squelch tail/crash
|
||||
RADIO_EnableCxCSS();
|
||||
}
|
||||
#if 0
|
||||
else
|
||||
{ // TX a short blank carrier
|
||||
// this gives the receivers time to mute RX audio before we drop carrier
|
||||
BK4819_ExitSubAu();
|
||||
SYSTEM_DelayMs(200);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
// send the CTCSS/DCS tail tone - allows the receivers to mute the usual FM squelch tail/crash
|
||||
RADIO_EnableCxCSS();
|
||||
RADIO_SetupRegisters(false);
|
||||
}
|
||||
|
||||
|
26
radio.c
26
radio.c
@ -1031,23 +1031,17 @@ void RADIO_PrepareTX(void)
|
||||
|
||||
void RADIO_EnableCxCSS(void)
|
||||
{
|
||||
switch (gCurrentVfo->pTX->CodeType)
|
||||
{
|
||||
default:
|
||||
case CODE_TYPE_OFF:
|
||||
break;
|
||||
|
||||
case CODE_TYPE_CONTINUOUS_TONE:
|
||||
BK4819_EnableCTCSS();
|
||||
SYSTEM_DelayMs(200);
|
||||
break;
|
||||
|
||||
case CODE_TYPE_DIGITAL:
|
||||
case CODE_TYPE_REVERSE_DIGITAL:
|
||||
BK4819_EnableCDCSS();
|
||||
SYSTEM_DelayMs(200);
|
||||
break;
|
||||
switch (gCurrentVfo->pTX->CodeType) {
|
||||
case CODE_TYPE_DIGITAL:
|
||||
case CODE_TYPE_REVERSE_DIGITAL:
|
||||
BK4819_EnableCDCSS();
|
||||
break;
|
||||
default:
|
||||
BK4819_EnableCTCSS();
|
||||
break;
|
||||
}
|
||||
|
||||
SYSTEM_DelayMs(200);
|
||||
}
|
||||
|
||||
void RADIO_PrepareCssTX(void)
|
||||
|
Loading…
Reference in New Issue
Block a user