From 1383e3d61eaceaf35b9a80ed6a57c5c28904c4a7 Mon Sep 17 00:00:00 2001 From: Silvano Seva Date: Sat, 27 Aug 2022 17:27:04 +0200 Subject: [PATCH] Reset prompt buffer position to zero once VP had finished speaking so that another play would replay the buffer --- openrtx/src/core/voicePrompts.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openrtx/src/core/voicePrompts.c b/openrtx/src/core/voicePrompts.c index 19efef64..1b7f11dc 100644 --- a/openrtx/src/core/voicePrompts.c +++ b/openrtx/src/core/voicePrompts.c @@ -482,7 +482,10 @@ void vp_tick() // see if we've finished. if(vpCurrentSequence.pos == vpCurrentSequence.length) - voicePromptActive = false; + { + voicePromptActive = false; + vpCurrentSequence.pos = 0; + } } bool vp_isPlaying()