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

TX disabled when radio set to 'AM' - compile option

This commit is contained in:
OneOfEleven
2023-09-11 08:45:29 +01:00
parent e5294129ae
commit 9ebe5b4e56
9 changed files with 58 additions and 55 deletions

View File

@ -812,6 +812,13 @@ void RADIO_PrepareTX(void)
{
VfoState_t State;
#ifndef ENABLE_TX_WHEN_AM
// disable the TX when VFO/Channel is set to AM
// the radio does NOT do AM, the adverts are false
if (gCurrentVfo->IsAM)
State = VFO_STATE_TX_DISABLE;
else
#endif
if (!FREQUENCY_Check(gCurrentVfo))
{
if (gCurrentVfo->BUSY_CHANNEL_LOCK && gCurrentFunction == FUNCTION_RECEIVE)
@ -827,7 +834,7 @@ void RADIO_PrepareTX(void)
}
else
State = VFO_STATE_TX_DISABLE;
RADIO_SetVfoState(State);
#ifndef DISABLE_ALARM