1
0
mirror of https://github.com/xfjx/TonUINO.git synced 2025-08-29 10:50:14 +02:00

Shortcut Bugfix

This commit is contained in:
Thorsten Voß
2019-01-11 00:25:32 +01:00
parent e80572011e
commit eccd0ec5c9

View File

@@ -603,11 +603,11 @@ void loop() {
else { else {
nextButton(); nextButton();
} }
ignoreUpButton = true;
} }
else { else {
playShortCut(1); playShortCut(1);
} }
ignoreUpButton = true;
} else if (upButton.wasReleased()) { } else if (upButton.wasReleased()) {
if (!ignoreUpButton) if (!ignoreUpButton)
if (!mySettings.invertVolumeButtons) { if (!mySettings.invertVolumeButtons) {
@@ -627,11 +627,11 @@ void loop() {
else { else {
previousButton(); previousButton();
} }
ignoreDownButton = true;
} }
else { else {
playShortCut(2); playShortCut(2);
} }
ignoreDownButton = true;
} else if (downButton.wasReleased()) { } else if (downButton.wasReleased()) {
if (!ignoreDownButton) { if (!ignoreDownButton) {
if (!mySettings.invertVolumeButtons) { if (!mySettings.invertVolumeButtons) {