From c1515cb377fc4e2ab395dd5f70efc24071079e93 Mon Sep 17 00:00:00 2001 From: GuteLaune <65677822+GuteLaune@users.noreply.github.com> Date: Mon, 4 Jan 2021 11:54:49 +0100 Subject: [PATCH] improved button swap via adminmenu now the buttons are swapped everytime you choose "Ja" and stay the same when you say "Nein" --- Tonuino.ino | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Tonuino.ino b/Tonuino.ino index c3ce9c9b..cc2c86d3 100644 --- a/Tonuino.ino +++ b/Tonuino.ino @@ -458,10 +458,10 @@ class RepeatSingleModifier: public Modifier { Serial.println(F("== RepeatSingleModifier::handleNext() -> REPEAT CURRENT TRACK")); delay(50); if (isPlaying()) return true; - if (myFolder->mode == 3 || myFolder->mode == 9){ + if (myFolder->mode == 3 || myFolder->mode == 9) { mp3.playFolderTrack(myFolder->folder, queue[currentTrack - 1]); } - else{ + else { mp3.playFolderTrack(myFolder->folder, currentTrack); } _lastTrackFinished = 0; @@ -1289,10 +1289,12 @@ void adminMenu(bool fromCard = false) { // Invert Functions for Up/Down Buttons int temp = voiceMenu(2, 933, 933, false); if (temp == 2) { - mySettings.invertVolumeButtons = true; - } - else { - mySettings.invertVolumeButtons = false; + if (mySettings.invertVolumeButtons == false) { + mySettings.invertVolumeButtons = true; + } + else { + mySettings.invertVolumeButtons = false; + } } } else if (subMenu == 11) {