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:
@ -371,12 +371,13 @@ void checkInputs() {
|
|||||||
if (!digitalRead(START_STOP_BTN_PIN) && !playBtnPushed) {
|
if (!digitalRead(START_STOP_BTN_PIN) && !playBtnPushed) {
|
||||||
if (masterClockMode == 0) {
|
if (masterClockMode == 0) {
|
||||||
calculateBPMTiming();
|
calculateBPMTiming();
|
||||||
resetClocks();
|
|
||||||
if (!isPlaying) {
|
if (!isPlaying) {
|
||||||
|
resetClocks();
|
||||||
isPlaying = true;
|
isPlaying = true;
|
||||||
sendMIDIStart();
|
sendMIDIStart();
|
||||||
} else {
|
} else {
|
||||||
isPlaying = false;
|
isPlaying = false;
|
||||||
|
resetClocks();
|
||||||
sendMIDIStop();
|
sendMIDIStop();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -259,10 +259,11 @@ void updateScreen() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
valueStr = F("t");
|
|
||||||
if (masterClockMode == 0 && !isPlaying) {
|
if (masterClockMode == 0 && !isPlaying) {
|
||||||
|
valueStr = F("t");
|
||||||
u8g2.drawUTF8(121, yPos, valueStr.c_str() );
|
u8g2.drawUTF8(121, yPos, valueStr.c_str() );
|
||||||
} else if (masterClockMode == 0 && isPlaying) {
|
} else if (masterClockMode == 0 && isPlaying) {
|
||||||
|
valueStr = F("r");
|
||||||
u8g2.drawUTF8(122, yPos, valueStr.c_str() );
|
u8g2.drawUTF8(122, yPos, valueStr.c_str() );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user