Skip to content

Commit

Permalink
fixup! Add Terms and Conditions Acknowledgement Options to Chip Tool
Browse files Browse the repository at this point in the history
  • Loading branch information
swan-amazon committed May 17, 2024
1 parent 7e33cb1 commit 0f3016c
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/pairing/PairingCommand.h
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ class PairingCommand : public CHIPCommand,

AddArgument("tc-acknowledgement-version", 0, UINT16_MAX, &mTCAcknowledgementVersion,
"Terms and Conditions acknowledgement version to use to set the General Commissioning cluster's TC "
"Acknowledgements bit-field");
"Acknowledgement version");
}

AddArgument("timeout", 0, UINT16_MAX, &mTimeout);
Expand Down
4 changes: 2 additions & 2 deletions src/controller/CHIPDeviceController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2894,8 +2894,8 @@ void DeviceCommissioner::PerformCommissioningStep(DeviceProxy * proxy, Commissio
ChipLogProgress(Controller, "Setting Terms and Conditions");

GeneralCommissioning::Commands::SetTCAcknowledgements::Type request;
request.TCUserResponse = 0x1;
request.TCVersion = 0x1;
request.TCUserResponse = params.GetTCAcknowledgements().Value();
request.TCVersion = params.GetTCAcknowledgementVersion().Value();
CHIP_ERROR err =
SendCommissioningCommand(proxy, request, OnSetTCAcknowledgementsResponse, OnBasicFailure, endpoint, timeout);
if (err != CHIP_NO_ERROR)
Expand Down

0 comments on commit 0f3016c

Please sign in to comment.