respect Once sound mode

Change in memory:
Flash: +4 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-02-11 12:45:33 +00:00 committed by DRracer
parent 96fc90c80b
commit 8794ab2f71
1 changed files with 3 additions and 4 deletions

View File

@ -201,10 +201,9 @@ void sound_wait_for_user() {
if (eSoundMode == e_SOUND_MODE_SILENT) return;
// Handle case where only one beep is needed
if (!bFirst) {
if (eSoundMode == e_SOUND_MODE_ONCE) {
Sound_MakeCustom(80, 0, false);
}
if (eSoundMode == e_SOUND_MODE_ONCE) {
if (bFirst) return;
Sound_MakeCustom(80, 0, false);
bFirst = true;
}