0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-04-28 14:21:25 +03:00

Modulation mode update

This commit is contained in:
OneOfEleven 2023-10-30 02:10:36 +00:00
parent 5e0590355f
commit 4040d047fd
7 changed files with 16 additions and 7 deletions

View File

@ -212,7 +212,7 @@ void processFKeyFunction(const key_code_t Key)
#if 0
g_tx_vfo->am_mode = (g_tx_vfo->am_mode + 1) & 1u;
#else
if (++g_tx_vfo->am_mode >= 4)
if (++g_tx_vfo->am_mode >= 3)
g_tx_vfo->am_mode = 0;
#endif
g_request_save_channel = 1;

Binary file not shown.

Binary file not shown.

11
radio.c
View File

@ -715,6 +715,17 @@ void RADIO_setup_registers(bool switch_to_function_foreground)
(g_eeprom.dac_gain << 0)); // AF DAC Gain (after Gain-1 and Gain-2)
}
#ifdef ENABLE_VOICE
#ifdef MUTE_AUDIO_FOR_VOICE
if (g_voice_write_index == 0)
AUDIO_set_mod_mode(g_rx_vfo->am_mode);
#else
AUDIO_set_mod_mode(g_rx_vfo->am_mode);
#endif
#else
AUDIO_set_mod_mode(g_rx_vfo->am_mode);
#endif
interrupt_mask = BK4819_REG_3F_SQUELCH_FOUND | BK4819_REG_3F_SQUELCH_LOST;
if (IS_NOT_NOAA_CHANNEL(g_rx_vfo->channel_save))

View File

@ -846,8 +846,7 @@ void UI_DisplayMain(void)
default:
case 0: strcpy(str, "FM"); break;
case 1: strcpy(str, "AM"); break;
case 2: strcpy(str, "LS"); break;
case 3: strcpy(str, "US"); break;
case 2: strcpy(str, "DS"); break;
}
}
else

View File

@ -174,12 +174,11 @@ const unsigned int g_hidden_menu_count = 9;
// ***************************************************************************************
const char g_sub_menu_mod_mode[4][4] =
const char g_sub_menu_mod_mode[3][4] =
{
"FM",
"AM",
"LSB",
"USB"
"DSB"
};
const char g_sub_menu_tx_power[3][7] =

View File

@ -162,7 +162,7 @@ enum
extern const t_menu_item g_menu_list[];
extern uint8_t g_menu_list_sorted[];
extern const char g_sub_menu_mod_mode[4][4];
extern const char g_sub_menu_mod_mode[3][4];
extern const char g_sub_menu_tx_power[3][7];
extern const char g_sub_menu_shift_dir[3][4];
extern const char g_sub_menu_bandwidth[2][7];