From 647f84226c41f46455c417ff59b2f1de8b9f6ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20Vo=C3=9F?= Date: Sun, 16 Sep 2018 23:15:44 +0200 Subject: [PATCH] Bugfix --- Tonuino.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Tonuino.ino b/Tonuino.ino index 089a844..7f26d06 100644 --- a/Tonuino.ino +++ b/Tonuino.ino @@ -96,11 +96,10 @@ static void nextTrack() { mp3.playFolderTrack(myCard.folder, track); // Fortschritt im EEPROM abspeichern EEPROM.write(myCard.folder, track); - } else { + } else mp3.sleep(); // Fortschritt zurück setzen EEPROM.write(myCard.folder, 1); - } } } @@ -184,8 +183,9 @@ void setup() { // DFPlayer Mini initialisieren mp3.begin(); + mp3.reset(); mp3.setVolume(15); - + // NFC Leser initialisieren SPI.begin(); // Init SPI bus mfrc522.PCD_Init(); // Init MFRC522