From cca6dd87c528e97e78b70c2d7fd81bf318e16a50 Mon Sep 17 00:00:00 2001 From: midilab Date: Mon, 4 Dec 2017 21:05:38 -0200 Subject: [PATCH] Fix #2 for clock PPQN resolutions of 16, 32 and 96 --- src/uClock.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/uClock.cpp b/src/uClock.cpp index 4e55579..01f446b 100755 --- a/src/uClock.cpp +++ b/src/uClock.cpp @@ -256,6 +256,10 @@ void uClockClass::handleTimerInt() div32th_counter++; } + if (onClock96PPQNCallback) { + onClock96PPQNCallback(&div96th_counter); + } + div96th_counter++; mod6_counter++; @@ -274,10 +278,6 @@ void uClockClass::handleTimerInt() } } } - - if (onClock96PPQNCallback) { - onClock96PPQNCallback(&div96th_counter); - } if (mod6_counter == 6) { mod6_counter = 0;