0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-19 22:58:04 +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

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))