Fixed the bug when sequence was erased without going to edit screen
This commit is contained in:
@ -308,9 +308,10 @@ void externalClock() {
|
|||||||
if (masterClockMode == 1 && extClockPPQN == 0) { // EXT-24
|
if (masterClockMode == 1 && extClockPPQN == 0) { // EXT-24
|
||||||
//reset cycles if there was no pulses for a while
|
//reset cycles if there was no pulses for a while
|
||||||
if ((newExtPulseTime - lastExtPulseTime) > 125) { //125ms is 20bpm
|
if ((newExtPulseTime - lastExtPulseTime) > 125) { //125ms is 20bpm
|
||||||
for (byte i = 0; i < 6; i++) {
|
//for (byte i = 0; i < 6; i++) {
|
||||||
channelPulseCount[i] = 0;
|
//channelPulseCount[i] = 0;
|
||||||
}
|
//}
|
||||||
|
resetClocks();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!isPlaying) {
|
if (!isPlaying) {
|
||||||
|
|||||||
@ -386,7 +386,7 @@ void checkInputs() {
|
|||||||
} else if (digitalRead(SHIFT_BTN_PIN) && shiftBtnPushed) {
|
} else if (digitalRead(SHIFT_BTN_PIN) && shiftBtnPushed) {
|
||||||
shiftBtnPushed = false;
|
shiftBtnPushed = false;
|
||||||
shiftReleasedTime = millis();
|
shiftReleasedTime = millis();
|
||||||
if (shiftReleasedTime - shiftPressedTime > 500) { //&& shiftReleasedTime - shiftPressedTime < 2000
|
if (displayScreen == 1 && shiftReleasedTime - shiftPressedTime > 500) { //&& shiftReleasedTime - shiftPressedTime < 2000 //Clear the sequence
|
||||||
for (byte i = 0; i < 16; i++) {
|
for (byte i = 0; i < 16; i++) {
|
||||||
patternToEdit[i] = 0;
|
patternToEdit[i] = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user