When PTT is pressed, stop any voice prompt or beep in process.
This commit is contained in:
parent
f9228ec23c
commit
793a76d1ea
|
|
@ -568,6 +568,11 @@ void vp_play()
|
||||||
|
|
||||||
void vp_tick()
|
void vp_tick()
|
||||||
{
|
{
|
||||||
|
if (platform_getPttStatus() && (voicePromptActive || (currentBeepDuration > 0)))
|
||||||
|
{
|
||||||
|
vp_stop();
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (beep_tick())
|
if (beep_tick())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue