BUZZ cleanup (#14760)

This commit is contained in:
Ludy
2019-07-29 02:14:50 +02:00
committed by Scott Lahteine
parent 6b02b89ab4
commit c4bb458763
12 changed files with 74 additions and 34 deletions

View File

@ -79,7 +79,7 @@ void BrickoutGame::game_screen() {
}
// Did the ball go below the bottom?
else if (newy > BTOF(LCD_PIXEL_HEIGHT)) {
BUZZ(500, 75);
_BUZZ(500, 75);
if (--bdat.balls_left) reset_ball(); else game_state = 0;
break; // done
}

View File

@ -28,7 +28,7 @@
//#define MUTE_GAMES
#ifdef MUTE_GAMES
#if ENABLED(MUTE_GAMES) || !HAS_BUZZER
#define _BUZZ(D,F) NOOP
#else
#define _BUZZ(D,F) BUZZ(D,F)