From a71a06c57a0b3535e48a32991edf6b5a4b493aac Mon Sep 17 00:00:00 2001 From: vk7js <58905135+vk7js@users.noreply.github.com> Date: Tue, 6 Sep 2022 23:08:24 +1000 Subject: [PATCH] 1. Renamed beepTick to beep_tick for consistency. 2. Made beep_tick static. 3. call beep_tick from top of vp_tick because in its prior location it might not actually be called. --- openrtx/src/core/voicePrompts.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openrtx/src/core/voicePrompts.c b/openrtx/src/core/voicePrompts.c index 2106b037..46d294bc 100644 --- a/openrtx/src/core/voicePrompts.c +++ b/openrtx/src/core/voicePrompts.c @@ -461,7 +461,7 @@ void vp_play() audio_enableAmp(); } -void BeepTick() +static void beep_tick() { if (currentBeepDuration > 0) { @@ -473,6 +473,8 @@ void BeepTick() void vp_tick() { + beep_tick(); + if (voicePromptActive == false) return; @@ -517,7 +519,6 @@ void vp_tick() vpCurrentSequence.c2DataIndex = 0; vpCurrentSequence.c2DataLength = 0; } - BeepTick(); } bool vp_isPlaying()