From 094a7e096f54c5320b4bbae7f98a1f0d82b4e869 Mon Sep 17 00:00:00 2001 From: technyon Date: Sat, 2 Apr 2022 09:18:24 +0200 Subject: [PATCH] set next status update check timestamp after lock action --- Nuki.cpp | 4 ++++ lib/nuki_ble | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Nuki.cpp b/Nuki.cpp index 5fe4197..5f6cd3d 100644 --- a/Nuki.cpp +++ b/Nuki.cpp @@ -83,6 +83,10 @@ void Nuki::update() { _nukiBle.lockAction(_nextLockAction, 0, 0); _nextLockAction = (LockAction)0xff; + if(_intervalLockstate > 10 * 1000) + { + _nextLockStateUpdateTs = ts + 10 * 1000; + } } } diff --git a/lib/nuki_ble b/lib/nuki_ble index 7053a02..4b6bb05 160000 --- a/lib/nuki_ble +++ b/lib/nuki_ble @@ -1 +1 @@ -Subproject commit 7053a024f571569200001a1e24dddc0d47f58dc1 +Subproject commit 4b6bb05fcbd6f3a94519defef8ce584a088952a9