From 10920207173c1bf4b3672e8066a075daeec30f7a Mon Sep 17 00:00:00 2001 From: Michael Rupp <95718139+mykrupp@users.noreply.github.com> Date: Tue, 9 Aug 2022 11:30:16 -0400 Subject: [PATCH] Update lockState attribute when lock/unlock action occurs (#21747) * Update lockState attribute when lock/unlock action occurs * Restyled by whitespace Co-authored-by: Restyled.io --- examples/lock-app/efr32/src/LockManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples/lock-app/efr32/src/LockManager.cpp b/examples/lock-app/efr32/src/LockManager.cpp index dba71262b9272e..7e52e9540dc7f0 100644 --- a/examples/lock-app/efr32/src/LockManager.cpp +++ b/examples/lock-app/efr32/src/LockManager.cpp @@ -650,6 +650,9 @@ bool LockManager::setLockState(chip::EndpointId endpointId, DlLockState lockStat { ChipLogDetail(Zcl, "Door Lock App: setting door lock state to \"%s\" [endpointId=%d]", lockStateToString(lockState), endpointId); + + DoorLockServer::Instance().SetLockState(endpointId, lockState); + return true; } @@ -671,6 +674,8 @@ bool LockManager::setLockState(chip::EndpointId endpointId, DlLockState lockStat "Lock App: specified PIN code was found in the database, setting lock state to \"%s\" [endpointId=%d]", lockStateToString(lockState), mEndpointId); + DoorLockServer::Instance().SetLockState(endpointId, lockState); + return true; } }