Skip to content

Commit

Permalink
Update ModelCommand.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanw-google committed May 30, 2024
1 parent 067a372 commit 34c2ae6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/chip-tool/commands/clusters/ModelCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class ModelCommand : public CHIPCommand

virtual CHIP_ERROR SendGroupCommand(chip::GroupId groupId, chip::FabricIndex fabricIndex) { return CHIP_ERROR_BAD_REQUEST; };

void ClearICDEntry(const chip::ScopedNodeId & nodeId) override;
virtual void ClearICDEntry(const chip::ScopedNodeId & nodeId);

void Shutdown() override;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void ModelCommand::OnDeviceConnectedFn(void * context, Messaging::ExchangeManage
VerifyOrReturn(command != nullptr, ChipLogError(chipTool, "OnDeviceConnectedFn: context is null"));

OperationalDeviceProxy device(&exchangeMgr, sessionHandle);
CHIP_ERROR err = command->SendCommand(&device, command->minEndPointId);
CHIP_ERROR err = command->SendCommand(&device, command->mEndPointId);
VerifyOrReturn(CHIP_NO_ERROR == err, command->SetCommandExitStatus(err));
}

Expand All @@ -82,7 +82,7 @@ void ModelCommand::Shutdown()
mOnDeviceConnectionFailureCallback.Cancel();
}

void ClearICDEntry(const chip::ScopedNodeId & nodeId);
void ModelCommand::ClearICDEntry(const chip::ScopedNodeId & nodeId)
{
ChipLogError(chipTool, "ClearICDEntry is not implemented in tv-casting-app");
}
Expand Down

0 comments on commit 34c2ae6

Please sign in to comment.