mirror of
https://github.com/IoTManagerProject/IoTManager.git
synced 2026-03-26 22:22:16 +03:00
Убираем лишнюю секунду при повторе таймера
This commit is contained in:
@@ -28,8 +28,8 @@ class Timer : public IoTItem {
|
||||
|
||||
void doByInterval() {
|
||||
if (!_unfin && value.valD >= 0 && !_pause) {
|
||||
if (_repeat && value.valD == 0) value.valD = _initValue;
|
||||
value.valD--;
|
||||
if (_repeat && value.valD == -1) value.valD = _initValue;
|
||||
if (_needSave) needSave = true;
|
||||
if (value.valD == 0) {
|
||||
regEvent(value.valD, "Time's up");
|
||||
|
||||
Reference in New Issue
Block a user