refactor GPIO detection code

This commit is contained in:
technyon
2024-10-20 09:51:45 +02:00
parent 7c8dbabb9f
commit a149f2e6b6
4 changed files with 38 additions and 33 deletions

View File

@@ -268,7 +268,7 @@ void NukiWrapper::update()
if(_nukiOfficial->getOffCommandExecutedTs() > 0 && ts >= _nukiOfficial->getOffCommandExecutedTs())
{
nukiInst->_nextLockAction = _offCommand;
_nextLockAction = _offCommand;
_nukiOfficial->clearOffCommandExecutedTs();
}
if(_nextLockAction != (NukiLock::LockAction)0xff)