From 3fab2241aa484913595219ee9046d2967acf7f0d Mon Sep 17 00:00:00 2001 From: Dmitry Borisenko <49808844+DmitryBorisenko33@users.noreply.github.com> Date: Tue, 11 Jan 2022 11:27:24 +0100 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=B1=D0=B0=D0=B3=20=D1=81=20=D1=88=D0=B0=D0=B3=D0=BE?= =?UTF-8?q?=D0=B2=D1=8B=D0=BC=D0=B8=20=D0=B4=D0=B2=D0=B8=D0=B3=D0=B0=D1=82?= =?UTF-8?q?=D0=B5=D0=BB=D1=8F=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/items/vImpulsOut.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/items/vImpulsOut.cpp b/src/items/vImpulsOut.cpp index 8449a463..ec3f49aa 100644 --- a/src/items/vImpulsOut.cpp +++ b/src/items/vImpulsOut.cpp @@ -24,7 +24,7 @@ void ImpulsOutClass::loop() { currentMillis = millis(); difference = currentMillis - prevMillis; if (_impulsCountBuf > 0) { - if (difference > _impulsPeriod) { + if (difference >= _impulsPeriod) { _impulsCountBuf--; prevMillis = millis(); yield();