Skip to content

Commit

Permalink
Fix Linux build issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple authored Feb 17, 2023
1 parent 6069462 commit 7ce9b4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/lock-app/linux/src/LockEndpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ bool LockEndpoint::setLockState(DlLockState lockState, const Optional<chip::Byte
mLockState = lockState;
LockOpCredentials userCredential[] = { { CredentialTypeEnum::kPin, uint16_t(credentialIndex) } };
auto userCredentials = MakeNullable<List<const LockOpCredentials>>(userCredential);
DoorLockServer::Instance().SetLockState(mEndpointId, mLockState, opSource, Nullable<uint16_t>(userIndex + 1), userCredentials);
DoorLockServer::Instance().SetLockState(mEndpointId, mLockState, opSource, MakeNullable(static_cast<uint16_t>(userIndex + 1)), userCredentials);

return true;
}
Expand Down

0 comments on commit 7ce9b4a

Please sign in to comment.