Skip to content

Commit

Permalink
Update ICDCommand.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanw-google authored May 16, 2024
1 parent 8b79b39 commit e4b55ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/chip-tool/commands/icd/ICDCommand.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ CHIP_ERROR ICDWaitForDeviceCommand::RunCommand()

void ICDWaitForDeviceCommand::OnCheckInComplete(const chip::app::ICDClientInfo & clientInfo)
{
DefaultCheckInDelegate::OnCheckInComplete(clientInfo);
Default::OnCheckInComplete(clientInfo);

if (clientInfo.peer_node != mInterestedNode)
{
Expand Down Expand Up @@ -121,7 +121,7 @@ void registerCommandsICD(Commands & commands, CredentialIssuerCommands * credsIs

// This should be safe within CHIPTool, since the lifespan of Commands is longer than any commands and the CHIPStack.
// So this object will not be used after free within CHIPTool.
checkInDelegate = static_cast<ICDWaitForDeviceCommand *>(icdWaitForDeviceCommand.get());
sCheckInDelegate = static_cast<ICDWaitForDeviceCommand *>(icdWaitForDeviceCommand.get());

commands_list list = {
make_unique<ICDListCommand>(credsIssuerConfig),
Expand All @@ -133,5 +133,5 @@ void registerCommandsICD(Commands & commands, CredentialIssuerCommands * credsIs

DefaultCheckInDelegate * chipToolCheckInDelegate()
{
return checkInDelegate;
return sCheckInDelegate;
}

0 comments on commit e4b55ae

Please sign in to comment.