diff --git a/src/uClock.cpp b/src/uClock.cpp index c73fc01..8411dbe 100755 --- a/src/uClock.cpp +++ b/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()