From a1e302b19da54fd00a9ee1833af8382ce8e6c1bf Mon Sep 17 00:00:00 2001 From: vk7js <58905135+vk7js@users.noreply.github.com> Date: Fri, 9 Sep 2022 20:35:57 +1000 Subject: [PATCH] Got beeps working so long as you don't have ctcss set. Reduced durations to sensible values. --- openrtx/src/core/voicePromptUtils.c | 4 ++-- openrtx/src/ui/ui.c | 4 ++-- platform/targets/MD-UV3x0/platform.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/openrtx/src/core/voicePromptUtils.c b/openrtx/src/core/voicePromptUtils.c index 0e49dc4a..ce838c38 100644 --- a/openrtx/src/core/voicePromptUtils.c +++ b/openrtx/src/core/voicePromptUtils.c @@ -914,8 +914,8 @@ void vp_playMenuBeepIfNeeded(bool firstItem) if (state.settings.vpLevel < vpBeep) return; if (firstItem) - vp_beep(500, 250); + vp_beep(500, 5); else - vp_beep(1000, 250); + vp_beep(1000, 5); } diff --git a/openrtx/src/ui/ui.c b/openrtx/src/ui/ui.c index dac422ba..8cc7ed59 100644 --- a/openrtx/src/ui/ui.c +++ b/openrtx/src/ui/ui.c @@ -279,13 +279,13 @@ static void ReleaseFunctionLatchIfNeeded() return; functionLatchTimer = 0; - vp_beep(200, 500); + vp_beep(400, 10); } static void SetFunctionLatchTimer() { functionLatchTimer= getTick() + FUNCTION_LATCH_TIMEOUT; - vp_beep(800, 500); + vp_beep(800, 10); } static bool FunctionKeyIsLatched() diff --git a/platform/targets/MD-UV3x0/platform.c b/platform/targets/MD-UV3x0/platform.c index 180522f2..d56eb549 100644 --- a/platform/targets/MD-UV3x0/platform.c +++ b/platform/targets/MD-UV3x0/platform.c @@ -184,7 +184,7 @@ void platform_ledOff(led_t led) void platform_beepStart(uint16_t freq) { - toneGen_beepOn((float)freq, 255, 0); + toneGen_beepOn((float)freq, 128, 0); } void platform_beepStop()