From ff8cbfbd524eeaa217fe09f4c94e3cbad273d7dd Mon Sep 17 00:00:00 2001 From: midilab Date: Fri, 21 Aug 2020 06:59:11 -0300 Subject: [PATCH] fix for stop state bug on last release --- src/uClock.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/uClock.cpp b/src/uClock.cpp index 679289c..8492306 100755 --- a/src/uClock.cpp +++ b/src/uClock.cpp @@ -102,8 +102,9 @@ void uClockClass::start() void uClockClass::stop() { - resetCounters(); + state = PAUSED; start_timer = 0; + resetCounters(); if (onClockStopCallback) { onClockStopCallback(); }