Clean SCRAMBLER again...and save 200 octets
This commit is contained in:
@@ -1866,10 +1866,14 @@ static void ProcessKey(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
|
||||
|
||||
BK4819_ExitDTMF_TX(false);
|
||||
|
||||
#ifndef ENABLE_FEAT_F4HWN
|
||||
if (gCurrentVfo->SCRAMBLING_TYPE == 0 || !gSetting_ScrambleEnable)
|
||||
BK4819_DisableScramble();
|
||||
else
|
||||
BK4819_EnableScramble(gCurrentVfo->SCRAMBLING_TYPE - 1);
|
||||
#else
|
||||
BK4819_DisableScramble();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
@@ -214,10 +214,14 @@ void FUNCTION_Transmit()
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_FEAT_F4HWN
|
||||
BK4819_DisableScramble();
|
||||
#else
|
||||
if (gCurrentVfo->SCRAMBLING_TYPE > 0 && gSetting_ScrambleEnable)
|
||||
BK4819_EnableScramble(gCurrentVfo->SCRAMBLING_TYPE - 1);
|
||||
else
|
||||
BK4819_DisableScramble();
|
||||
#endif
|
||||
|
||||
if (gSetting_backlight_on_tx_rx & BACKLIGHT_ON_TR_TX) {
|
||||
BACKLIGHT_TurnOn();
|
||||
|
8
radio.c
8
radio.c
@@ -235,8 +235,10 @@ void RADIO_ConfigureChannel(const unsigned int VFO, const unsigned int configure
|
||||
#ifndef ENABLE_FEAT_F4HWN
|
||||
if (tmp > (ARRAY_SIZE(gSubMenu_SCRAMBLER) - 1))
|
||||
tmp = 0;
|
||||
#endif
|
||||
pVfo->SCRAMBLING_TYPE = tmp;
|
||||
#else
|
||||
pVfo->SCRAMBLING_TYPE = 0;
|
||||
#endif
|
||||
|
||||
pVfo->freq_config_RX.CodeType = (data[2] >> 0) & 0x0F;
|
||||
pVfo->freq_config_TX.CodeType = (data[2] >> 4) & 0x0F;
|
||||
@@ -711,10 +713,14 @@ void RADIO_SetupRegisters(bool switchToForeground)
|
||||
break;
|
||||
}
|
||||
|
||||
#ifndef ENABLE_FEAT_F4HWN
|
||||
if (gRxVfo->SCRAMBLING_TYPE > 0 && gSetting_ScrambleEnable)
|
||||
BK4819_EnableScramble(gRxVfo->SCRAMBLING_TYPE - 1);
|
||||
else
|
||||
BK4819_DisableScramble();
|
||||
#else
|
||||
BK4819_DisableScramble();
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#ifdef ENABLE_NOAA
|
||||
|
@@ -967,9 +967,11 @@ void UI_DisplayMain(void)
|
||||
UI_PrintStringSmallNormal("DTMF", LCD_WIDTH + 78, 0, line + 1);
|
||||
#endif
|
||||
|
||||
#ifndef ENABLE_FEAT_F4HWN
|
||||
// show the audio scramble symbol
|
||||
if (vfoInfo->SCRAMBLING_TYPE > 0 && gSetting_ScrambleEnable)
|
||||
UI_PrintStringSmallNormal("SCR", LCD_WIDTH + 106, 0, line + 1);
|
||||
#endif
|
||||
|
||||
#ifdef ENABLE_FEAT_F4HWN
|
||||
if(isMainVFO)
|
||||
|
Reference in New Issue
Block a user