mirror of
https://github.com/xfjx/TonUINO.git
synced 2025-08-22 21:23:10 +02:00
Lautstärketasten funktionierten nicht mehr - Ups!
This commit is contained in:
14
Tonuino.ino
14
Tonuino.ino
@@ -547,8 +547,8 @@ void loop() {
|
|||||||
setstandbyTimer();
|
setstandbyTimer();
|
||||||
}
|
}
|
||||||
else if (knownCard) {
|
else if (knownCard) {
|
||||||
disablestandbyTimer();
|
|
||||||
mp3.start();
|
mp3.start();
|
||||||
|
disablestandbyTimer();
|
||||||
}
|
}
|
||||||
ignorePauseButton = false;
|
ignorePauseButton = false;
|
||||||
} else if (pauseButton.pressedFor(LONG_PRESS) &&
|
} else if (pauseButton.pressedFor(LONG_PRESS) &&
|
||||||
@@ -577,15 +577,15 @@ void loop() {
|
|||||||
else
|
else
|
||||||
nextButton();
|
nextButton();
|
||||||
ignoreUpButton = true;
|
ignoreUpButton = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
playShortCut(1);
|
||||||
} else if (upButton.wasReleased()) {
|
} else if (upButton.wasReleased()) {
|
||||||
if (!ignoreUpButton)
|
if (!ignoreUpButton)
|
||||||
if (!mySettings.invertVolumeButtons)
|
if (!mySettings.invertVolumeButtons)
|
||||||
nextButton();
|
nextButton();
|
||||||
else
|
else
|
||||||
volumeUpButton();
|
volumeUpButton();
|
||||||
}
|
|
||||||
else
|
|
||||||
playShortCut(1);
|
|
||||||
ignoreUpButton = false;
|
ignoreUpButton = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -596,15 +596,15 @@ void loop() {
|
|||||||
else
|
else
|
||||||
previousButton();
|
previousButton();
|
||||||
ignoreDownButton = true;
|
ignoreDownButton = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
playShortCut(2);
|
||||||
} else if (downButton.wasReleased()) {
|
} else if (downButton.wasReleased()) {
|
||||||
if (!ignoreDownButton)
|
if (!ignoreDownButton)
|
||||||
if (!mySettings.invertVolumeButtons)
|
if (!mySettings.invertVolumeButtons)
|
||||||
previousButton();
|
previousButton();
|
||||||
else
|
else
|
||||||
volumeDownButton();
|
volumeDownButton();
|
||||||
}
|
|
||||||
else
|
|
||||||
playShortCut(2);
|
|
||||||
ignoreDownButton = false;
|
ignoreDownButton = false;
|
||||||
}
|
}
|
||||||
// Ende der Buttons
|
// Ende der Buttons
|
||||||
|
Reference in New Issue
Block a user