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 committed Feb 17, 2023
1 parent 6069462 commit e3ffb8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/lock-app/linux/src/LockEndpoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,8 @@ 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 e3ffb8d

Please sign in to comment.