From a4b1c9b242db6297917679950da9b7cb51f5e687 Mon Sep 17 00:00:00 2001 From: Pablo2048 Date: Sun, 15 Dec 2024 14:30:44 +0100 Subject: [PATCH] Vice presny periodicky rezim --- src/interval.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interval.cpp b/src/interval.cpp index 3125c92..8f5546d 100644 --- a/src/interval.cpp +++ b/src/interval.cpp @@ -28,7 +28,7 @@ bool Interval::expired() // periodic mode if ((millis() - _timefrom) >= _timeout) { result = true; - _timefrom = millis(); + _timefrom += _timeout; // more precise periodic timing } } else { // compatibility mode