From 8914e06cd2eb40a30bac77c841b88ad820da9100 Mon Sep 17 00:00:00 2001 From: biver Date: Wed, 27 Apr 2022 15:56:34 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B0=D0=B7=D1=80=D0=B5=D1=88=D0=B0?= =?UTF-8?q?=D0=B5=D0=BC=20=D1=82=D0=B0=D0=B9=D0=BC=D0=B5=D1=80=D1=83=20?= =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D1=80=D0=B0=D1=82=D1=8C=D1=81=D1=8F=20=D0=B4?= =?UTF-8?q?=D0=BE=20=D0=BD=D1=83=D0=BB=D1=8F=20=D0=B8=D0=BB=D0=B8=20=D0=BD?= =?UTF-8?q?=D0=B8=D0=B6=D0=B5=20=D1=87=D1=82=D0=BE=D0=B1=20=D1=83=D1=87?= =?UTF-8?q?=D0=B5=D1=81=D1=82=D1=8C=20=D1=81=D0=B8=D1=82=D1=83=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D0=B8=20=D0=BD=D0=B5=20=D1=86=D0=B5=D0=BB=D1=8B=D1=85=20?= =?UTF-8?q?=D1=88=D0=B0=D0=B3=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/exec/Timer/Timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/exec/Timer/Timer.cpp b/src/modules/exec/Timer/Timer.cpp index 5a961934..8c5c3819 100644 --- a/src/modules/exec/Timer/Timer.cpp +++ b/src/modules/exec/Timer/Timer.cpp @@ -28,7 +28,7 @@ class Timer : public IoTItem { if (!_unfin && value.valD && !_pause) { value.valD--; if (_needSave) needSave = true; - if (value.valD == 0) { + if (value.valD <= 0) { regEvent(value.valD, "Time's up"); if (_repeat) value.valD = _initValue; }