Fixed compiler warning.

This commit is contained in:
Dual Tachyon 2023-08-15 11:11:40 +01:00
parent 1f113ccd7e
commit 2b510bdc1f
3 changed files with 6 additions and 5 deletions

View File

@ -308,10 +308,10 @@ void AUDIO_PlayQueuedVoice(void)
}
}
gVoiceReadIndex++;
if (gVoiceReadIndex == gVoiceWriteIndex) {
Delay += 3;
}
if (!Skip) {
if (gVoiceReadIndex == gVoiceWriteIndex) {
Delay += 3;
}
AUDIO_PlayVoice(VoiceID);
gCountdownToPlayNextVoice = Delay;
gFlagPlayQueuedVoice = false;

View File

@ -124,7 +124,7 @@ void FUNCTION_Select(uint8_t Function)
BK4819_DisableVox();
BK4819_Sleep();
BK4819_ToggleGpioOut(BK4819_GPIO6_PIN2, false);
gSystickFlag6 = 0;
gBatterySaveCountdownExpired = false;
g_2000036F = 1;
GUI_SelectNextDisplay(DISPLAY_MAIN);
return;

3
gui.c
View File

@ -128,8 +128,9 @@ void GUI_PasswordScreen(void)
memset(gNumberForPrintf, 10, sizeof(gNumberForPrintf));
while (1) {
while (!gMaybeVsync) {
while (!gNextTimeslice) {
}
gNextTimeslice = false;
Key = KEYBOARD_Poll();
if (gKeyReading0 == Key) {
gDebounceCounter++;