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

View File

@ -266,15 +266,19 @@ void FUNCTION_Select(function_type_t Function)
#ifdef ENABLE_MDC1200
if (g_current_vfo->channel.mdc1200_mode == MDC1200_MODE_BOT || 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_PTT_ID, 0x80, 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