From 259608228cf2381243d9cb30629d430d3f7c68d7 Mon Sep 17 00:00:00 2001 From: oeddn <24825728+oeddn@users.noreply.github.com> Date: Sat, 23 Feb 2019 08:36:07 +0100 Subject: [PATCH] Add curly braces around if statement These are mandatory, else the ignorePauseButton is not properly evaluated (will start playing after advertisment to delete cards) --- Tonuino.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Tonuino.ino b/Tonuino.ino index bb14b66..fba9c51 100644 --- a/Tonuino.ino +++ b/Tonuino.ino @@ -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) {