This commit is contained in:
e2002
2022-04-12 09:58:42 +03:00
parent b840b4418a
commit 51f85109c9
7 changed files with 15 additions and 4 deletions

View File

@@ -153,7 +153,10 @@ void encoder2Loop() {
if (ENC2_BTNB != 255) {
bp = digitalRead(ENC2_BTNB);
}
if (bp == HIGH && display.mode == PLAYER) display.putRequest({NEWMODE, STATIONS}); //display.swichMode(STATIONS);
if (bp == HIGH && display.mode == PLAYER) {
display.putRequest({NEWMODE, STATIONS});
while(display.mode != STATIONS) {delay(5);}
}
controlsEvent(encNewPosition > 0);
}
}