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

Merge pull request #26 from oeddn/patch-3

Add curly braces around if statement
This commit is contained in:
Thorsten Voß
2019-02-23 11:39:06 +01:00
committed by GitHub

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) {