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

Stopped user tuning into the 630MHz to 757MHz range - the BK4819 chip does not work there.

This commit is contained in:
OneOfEleven
2023-09-27 21:28:30 +01:00
parent 470297ea25
commit 3137a515ac
14 changed files with 131 additions and 55 deletions

10
radio.c
View File

@ -955,13 +955,17 @@ void RADIO_PrepareTX(void)
// 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 (!gSetting_TX_EN)
{
State = VFO_STATE_TX_DISABLE;
}
else
if (!FREQUENCY_Check(gCurrentVfo))
if (TX_FREQUENCY_Check(gCurrentVfo->pTX->Frequency) == 0 && gCurrentVfo->CHANNEL_SAVE <= FREQ_CHANNEL_LAST)
{
if (gCurrentVfo->BUSY_CHANNEL_LOCK && gCurrentFunction == FUNCTION_RECEIVE)
State = VFO_STATE_BUSY;
@ -976,8 +980,10 @@ void RADIO_PrepareTX(void)
goto Skip;
}
else
{
State = VFO_STATE_TX_DISABLE;
}
RADIO_SetVfoState(State);
#ifdef ENABLE_ALARM