0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 14:48:03 +03:00

Correct tail tone operation (STE) at end of TX

This commit is contained in:
OneOfEleven
2023-09-13 11:56:32 +01:00
parent ad2298aa30
commit fde690a74a
5 changed files with 54 additions and 4 deletions

View File

@ -690,7 +690,24 @@ void APP_CheckRadioInterrupts(void)
void APP_EndTransmission(void)
{
RADIO_SendEndOfTransmission();
RADIO_EnableCxCSS();
if (gCurrentVfo->pTX->CodeType != CODE_TYPE_OFF)
{ // CTCSS/CDCSS is enabled
//if (gEeprom.TAIL_NOTE_ELIMINATION && gEeprom.REPEATER_TAIL_TONE_ELIMINATION > 0)
if (gEeprom.TAIL_NOTE_ELIMINATION)
{ // send the tail tone
RADIO_EnableCxCSS();
}
#if 0
else
{ // TX a short blank carrier - gives the receivers time to mute RX audio before we drop carrier
BK4819_ExitSubAu();
SYSTEM_DelayMs(200);
}
#endif
}
RADIO_SetupRegisters(false);
}
@ -1008,6 +1025,7 @@ void APP_CheckKeys(void)
}
if (++count < 3)
continue;
// stop transmitting
APP_ProcessKey(KEY_PTT, false, false);
gPttIsPressed = false;
@ -1196,7 +1214,7 @@ void APP_TimeSlice10ms(void)
#endif
// repeater tail tone elimination
if (gRTTECountdown)
if (gRTTECountdown > 0)
{
if (--gRTTECountdown == 0)
{