From 793a76d1ea44cd25ed25b3ed6a96bd1484ca75a0 Mon Sep 17 00:00:00 2001 From: vk7js <58905135+vk7js@users.noreply.github.com> Date: Sat, 1 Oct 2022 18:52:38 +1000 Subject: [PATCH] When PTT is pressed, stop any voice prompt or beep in process. --- openrtx/src/core/voicePrompts.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openrtx/src/core/voicePrompts.c b/openrtx/src/core/voicePrompts.c index 22aa4f4b..9c1ee8b5 100644 --- a/openrtx/src/core/voicePrompts.c +++ b/openrtx/src/core/voicePrompts.c @@ -568,6 +568,11 @@ void vp_play() void vp_tick() { + if (platform_getPttStatus() && (voicePromptActive || (currentBeepDuration > 0))) + { + vp_stop(); + return; + } if (beep_tick()) return;