1.1.1 final final 1 (hopefuly). Fixed a play indicator bug and added reset after stop to prevent stuck channels

This commit is contained in:
Oleksiy
2024-10-20 14:14:21 +03:00
parent 5729650a34
commit ecf8e53d1b
2 changed files with 4 additions and 2 deletions

View File

@ -371,12 +371,13 @@ void checkInputs() {
if (!digitalRead(START_STOP_BTN_PIN) && !playBtnPushed) {
if (masterClockMode == 0) {
calculateBPMTiming();
resetClocks();
if (!isPlaying) {
resetClocks();
isPlaying = true;
sendMIDIStart();
} else {
isPlaying = false;
resetClocks();
sendMIDIStop();
}
}

View File

@ -259,10 +259,11 @@ void updateScreen() {
}
}
valueStr = F("t");
if (masterClockMode == 0 && !isPlaying) {
valueStr = F("t");
u8g2.drawUTF8(121, yPos, valueStr.c_str() );
} else if (masterClockMode == 0 && isPlaying) {
valueStr = F("r");
u8g2.drawUTF8(122, yPos, valueStr.c_str() );
}
}