1
0
mirror of https://github.com/xfjx/TonUINO.git synced 2025-08-23 01:13:22 +02:00

Add curly braces around if statement

These are mandatory, else the ignorePauseButton is not properly evaluated (will start playing after advertisment to delete cards)
This commit is contained in:
oeddn
2019-02-23 08:36:07 +01:00
committed by GitHub
parent cf841e8faf
commit 259608228c

View File

@@ -227,11 +227,12 @@ void loop() {
downButton.read(); downButton.read();
if (pauseButton.wasReleased()) { if (pauseButton.wasReleased()) {
if (ignorePauseButton == false) if (ignorePauseButton == false) {
if (isPlaying()) if (isPlaying())
mp3.pause(); mp3.pause();
else else
mp3.start(); mp3.start();
}
ignorePauseButton = false; ignorePauseButton = false;
} else if (pauseButton.pressedFor(LONG_PRESS) && } else if (pauseButton.pressedFor(LONG_PRESS) &&
ignorePauseButton == false) { ignorePauseButton == false) {