mirror of
https://github.com/xfjx/TonUINO.git
synced 2025-08-22 17:53:11 +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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user