hotfix: force onStartCallback to be called before we send our first clock signal. this fixes external gear problems related to start on slave midi device.

pull/7/head
midilab 6 years ago
parent c52b226223
commit b169de4cbc
  1. 8
      src/uClock.cpp

@ -90,6 +90,10 @@ void uClockClass::start()
{
start_timer = millis();
if (onClockStartCallback) {
onClockStartCallback();
}
if (mode == INTERNAL_CLOCK) {
state = STARTED;
mod6_counter = 0;
@ -106,10 +110,6 @@ void uClockClass::start()
div16th_counter = 0;
counter = 0;
}
if (onClockStartCallback) {
onClockStartCallback();
}
}
void uClockClass::stop()

Loading…
Cancel
Save