0
mirror of https://github.com/OneOfEleven/uv-k5-firmware-custom.git synced 2025-06-20 06:58:39 +03:00

fix mdc side beeps

This commit is contained in:
OneOfEleven
2023-11-06 00:47:22 +00:00
parent 32394cc558
commit b8e7d11bfc
8 changed files with 30 additions and 42 deletions

10
radio.c
View File

@ -1212,16 +1212,10 @@ void RADIO_tx_eot(void)
// if (g_eeprom.config.setting.roger_mode == ROGER_MODE_MDC)
if (g_current_vfo->channel.mdc1200_mode == MDC1200_MODE_EOT || g_current_vfo->channel.mdc1200_mode == MDC1200_MODE_BOTH)
{
#ifdef ENABLE_MDC1200_SIDE_BEEP
//BK4819_StartTone1(880, 20, false);
//SYSTEM_DelayMs(120);
//BK4819_StopTones(true);
#endif
BK4819_send_MDC1200(MDC1200_OP_CODE_POST_ID, 0x00, g_eeprom.config.setting.mdc1200_id);
BK4819_send_MDC1200(MDC1200_OP_CODE_POST_ID, 0x00, g_eeprom.config.setting.mdc1200_id, false);
#ifdef ENABLE_MDC1200_SIDE_BEEP
BK4819_StartTone1(880, 20, false);
BK4819_StartTone1(880, 30, true, false);
SYSTEM_DelayMs(120);
BK4819_StopTones(true);
#endif