When PTT is pressed, stop any voice prompt or beep in process.

This commit is contained in:
vk7js 2022-10-01 18:52:38 +10:00 committed by Silvano Seva
parent f9228ec23c
commit 793a76d1ea
1 changed files with 5 additions and 0 deletions

View File

@ -568,6 +568,11 @@ void vp_play()
void vp_tick()
{
if (platform_getPttStatus() && (voicePromptActive || (currentBeepDuration > 0)))
{
vp_stop();
return;
}
if (beep_tick())
return;