mirror of
https://github.com/OneOfEleven/uv-k5-firmware-custom.git
synced 2025-06-19 14:48:03 +03:00
more scrambler menu options
This commit is contained in:
10
functions.c
10
functions.c
@ -233,8 +233,7 @@ void FUNCTION_Select(function_type_t Function)
|
||||
}
|
||||
#endif
|
||||
|
||||
if (g_current_vfo->channel.scrambler == 0 || !g_eeprom.config.setting.enable_scrambler)
|
||||
BK4819_DisableScramble();
|
||||
BK4819_set_scrambler(0);
|
||||
|
||||
RADIO_enableTX(false);
|
||||
|
||||
@ -301,11 +300,8 @@ void FUNCTION_Select(function_type_t Function)
|
||||
(1u << 1) | // enable TX DSP
|
||||
(0u << 0)); // disable RX DSP
|
||||
*/
|
||||
if (g_current_vfo->channel.scrambler > 0 && g_eeprom.config.setting.enable_scrambler)
|
||||
{
|
||||
// BK4819_EnableScramble(g_current_vfo->channel.scrambler - 1);
|
||||
BK4819_EnableScramble(2600 + ((g_current_vfo->channel.scrambler - 1) * 100));
|
||||
}
|
||||
if (g_eeprom.config.setting.enable_scrambler)
|
||||
BK4819_set_scrambler(g_current_vfo->channel.scrambler);
|
||||
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user