Fix STE not working when TX CTCSS/DCS is off

Reverts:
fde690a74a: app.c
50a55e34ab: radio.c
This commit is contained in:
Krzysiek Egzmont
2023-10-28 14:41:47 +02:00
parent f3cc0f5acf
commit 20a3e3b605
2 changed files with 12 additions and 36 deletions

View File

@@ -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);
}