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

add mdc1200 side tone/beep compile option

This commit is contained in:
OneOfEleven
2023-11-05 23:20:38 +00:00
parent 352d529b86
commit e5226583ad
4 changed files with 25 additions and 12 deletions

16
radio.c
View File

@ -1212,15 +1212,19 @@ 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)
{
// BK4819_StartTone1(880, 50, false);
// SYSTEM_DelayMs(120);
// BK4819_StopTones(true);
#ifdef ENABLE_MDC1200_SIDE_BEEP
//BK4819_StartTone1(880, 50, false);
//SYSTEM_DelayMs(120);
//BK4819_StopTones(true);
#endif
BK4819_send_MDC1200(MDC1200_OP_CODE_POST_ID, 0x00, g_eeprom.config.setting.mdc1200_id);
BK4819_StartTone1(880, 50, false);
SYSTEM_DelayMs(120);
BK4819_StopTones(true);
#ifdef ENABLE_MDC1200_SIDE_BEEP
BK4819_StartTone1(880, 50, false);
SYSTEM_DelayMs(120);
BK4819_StopTones(true);
#endif
}
else
#endif