From 870f409298b33c9be39e0b29bb2dc3b6638cff91 Mon Sep 17 00:00:00 2001 From: technyon Date: Thu, 7 Apr 2022 23:05:19 +0200 Subject: [PATCH] fix next lock state update check --- NukiWrapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NukiWrapper.cpp b/NukiWrapper.cpp index 09284db..4d3b9b1 100644 --- a/NukiWrapper.cpp +++ b/NukiWrapper.cpp @@ -97,7 +97,7 @@ void NukiWrapper::update() { _nukiBle.lockAction(_nextLockAction, 0, 0); _nextLockAction = (Nuki::LockAction)0xff; - if(_intervalLockstate > 10 * 1000) + if(_intervalLockstate > 10) { _nextLockStateUpdateTs = ts + 10 * 1000; }