Skip to content

Commit

Permalink
Update lockState attribute when lock/unlock action occurs (#21747)
Browse files Browse the repository at this point in the history
* Update lockState attribute when lock/unlock action occurs

* Restyled by whitespace

Co-authored-by: Restyled.io <[email protected]>
  • Loading branch information
2 people authored and pull[bot] committed Feb 21, 2024
1 parent a606e7e commit 1092020
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/lock-app/efr32/src/LockManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
}
}
Expand Down

0 comments on commit 1092020

Please sign in to comment.