From eccd0ec5c958d1f125392bc07dd2b3bffe3f5c76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20Vo=C3=9F?= Date: Fri, 11 Jan 2019 00:25:32 +0100 Subject: [PATCH] Shortcut Bugfix --- Tonuino.ino | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tonuino.ino b/Tonuino.ino index c7593d3..9184922 100644 --- a/Tonuino.ino +++ b/Tonuino.ino @@ -328,7 +328,7 @@ void checkStandbyAtMillis() { // enter sleep state digitalWrite(shutdownPin, HIGH); delay(500); - + // http://discourse.voss.earth/t/intenso-s10000-powerbank-automatische-abschaltung-software-only/805 // powerdown to 27mA (powerbank switches off after 30-60s) mfrc522.PCD_AntennaOff(); @@ -603,11 +603,11 @@ void loop() { else { nextButton(); } - ignoreUpButton = true; } else { playShortCut(1); } + ignoreUpButton = true; } else if (upButton.wasReleased()) { if (!ignoreUpButton) if (!mySettings.invertVolumeButtons) { @@ -627,11 +627,11 @@ void loop() { else { previousButton(); } - ignoreDownButton = true; } else { playShortCut(2); } + ignoreDownButton = true; } else if (downButton.wasReleased()) { if (!ignoreDownButton) { if (!mySettings.invertVolumeButtons) { @@ -859,7 +859,7 @@ uint8_t voiceMenu(int numberOfOptions, int startMessage, int messageOffset, } else { mp3.playFolderTrack(previewFromFolder, returnValue); - } + } delay(1000); } } else {