1
0
mirror of https://github.com/xfjx/TonUINO.git synced 2025-08-23 01:02:58 +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();
if (pauseButton.wasReleased()) {
if (ignorePauseButton == false)
if (ignorePauseButton == false) {
if (isPlaying())
mp3.pause();
else
mp3.start();
}
ignorePauseButton = false;
} else if (pauseButton.pressedFor(LONG_PRESS) &&
ignorePauseButton == false) {