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.
This commit is contained in:
parent
a081964ac8
commit
a71a06c57a
|
|
@ -461,7 +461,7 @@ void vp_play()
|
||||||
audio_enableAmp();
|
audio_enableAmp();
|
||||||
}
|
}
|
||||||
|
|
||||||
void BeepTick()
|
static void beep_tick()
|
||||||
{
|
{
|
||||||
if (currentBeepDuration > 0)
|
if (currentBeepDuration > 0)
|
||||||
{
|
{
|
||||||
|
|
@ -473,6 +473,8 @@ void BeepTick()
|
||||||
|
|
||||||
void vp_tick()
|
void vp_tick()
|
||||||
{
|
{
|
||||||
|
beep_tick();
|
||||||
|
|
||||||
if (voicePromptActive == false)
|
if (voicePromptActive == false)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
|
@ -517,7 +519,6 @@ void vp_tick()
|
||||||
vpCurrentSequence.c2DataIndex = 0;
|
vpCurrentSequence.c2DataIndex = 0;
|
||||||
vpCurrentSequence.c2DataLength = 0;
|
vpCurrentSequence.c2DataLength = 0;
|
||||||
}
|
}
|
||||||
BeepTick();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool vp_isPlaying()
|
bool vp_isPlaying()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue