Skip to content

Commit

Permalink
Added unlatch state on unlock supporting Ubolt
Browse files Browse the repository at this point in the history
  • Loading branch information
lpbeliveau-silabs committed Feb 8, 2024
1 parent 18bf8c0 commit c06f533
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/lock-app/silabs/src/LockManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,10 @@ bool LockManager::Lock(chip::EndpointId endpointId, const Nullable<chip::FabricI
bool LockManager::Unlock(chip::EndpointId endpointId, const Nullable<chip::FabricIndex> & fabricIdx,
const Nullable<chip::NodeId> & nodeId, const Optional<chip::ByteSpan> & pin, OperationErrorEnum & err)
{
if (DoorLockServer::Instance().SupportsUnbolt(endpointId))
{
return setLockState(endpointId, fabricIdx, nodeId, DlLockState::kUnlatched, pin, err);
}
return setLockState(endpointId, fabricIdx, nodeId, DlLockState::kUnlocked, pin, err);
}

Expand Down

0 comments on commit c06f533

Please sign in to comment.