Skip to content

Commit

Permalink
Rebase and Regen
Browse files Browse the repository at this point in the history
Rebase and Regen2
  • Loading branch information
jmartinez-silabs committed Jun 14, 2021
1 parent 21e06b1 commit 2bac1b1
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 39 deletions.
14 changes: 7 additions & 7 deletions examples/window-app/common/gen/CHIPClusters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ CHIP_ERROR WindowCoveringCluster::WindowCoveringDownClose(Callback::Cancelable *

SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender));

SuccessOrExit(err = sender->PrepareCommand(&cmdParams));
SuccessOrExit(err = sender->PrepareCommand(cmdParams));

// Command takes no arguments.

Expand Down Expand Up @@ -90,7 +90,7 @@ CHIP_ERROR WindowCoveringCluster::WindowCoveringGoToLiftPercentage(Callback::Can

SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender));

SuccessOrExit(err = sender->PrepareCommand(&cmdParams));
SuccessOrExit(err = sender->PrepareCommand(cmdParams));

VerifyOrExit((writer = sender->GetCommandDataElementTLVWriter()) != nullptr, err = CHIP_ERROR_INCORRECT_STATE);
// percentageLiftValue: int8u
Expand Down Expand Up @@ -131,7 +131,7 @@ CHIP_ERROR WindowCoveringCluster::WindowCoveringGoToLiftValue(Callback::Cancelab

SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender));

SuccessOrExit(err = sender->PrepareCommand(&cmdParams));
SuccessOrExit(err = sender->PrepareCommand(cmdParams));

VerifyOrExit((writer = sender->GetCommandDataElementTLVWriter()) != nullptr, err = CHIP_ERROR_INCORRECT_STATE);
// liftValue: int16u
Expand Down Expand Up @@ -173,7 +173,7 @@ CHIP_ERROR WindowCoveringCluster::WindowCoveringGoToTiltPercentage(Callback::Can

SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender));

SuccessOrExit(err = sender->PrepareCommand(&cmdParams));
SuccessOrExit(err = sender->PrepareCommand(cmdParams));

VerifyOrExit((writer = sender->GetCommandDataElementTLVWriter()) != nullptr, err = CHIP_ERROR_INCORRECT_STATE);
// percentageTiltValue: int8u
Expand Down Expand Up @@ -214,7 +214,7 @@ CHIP_ERROR WindowCoveringCluster::WindowCoveringGoToTiltValue(Callback::Cancelab

SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender));

SuccessOrExit(err = sender->PrepareCommand(&cmdParams));
SuccessOrExit(err = sender->PrepareCommand(cmdParams));

VerifyOrExit((writer = sender->GetCommandDataElementTLVWriter()) != nullptr, err = CHIP_ERROR_INCORRECT_STATE);
// tiltValue: int16u
Expand Down Expand Up @@ -255,7 +255,7 @@ CHIP_ERROR WindowCoveringCluster::WindowCoveringStop(Callback::Cancelable * onSu

SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender));

SuccessOrExit(err = sender->PrepareCommand(&cmdParams));
SuccessOrExit(err = sender->PrepareCommand(cmdParams));

// Command takes no arguments.

Expand Down Expand Up @@ -294,7 +294,7 @@ CHIP_ERROR WindowCoveringCluster::WindowCoveringUpOpen(Callback::Cancelable * on

SuccessOrExit(err = chip::app::InteractionModelEngine::GetInstance()->NewCommandSender(&sender));

SuccessOrExit(err = sender->PrepareCommand(&cmdParams));
SuccessOrExit(err = sender->PrepareCommand(cmdParams));

// Command takes no arguments.

Expand Down
4 changes: 2 additions & 2 deletions examples/window-app/common/gen/IMClusterCommandHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En
0, // GroupId
ZCL_GENERAL_COMMISSIONING_CLUSTER_ID, aCommandId,
(chip::app::CommandPathFlags::kEndpointIdValid) };
apCommandObj->AddStatusCode(&returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound,
apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound,
Protocols::SecureChannel::Id, Protocols::SecureChannel::kProtocolCodeGeneralFailure);
ChipLogError(Zcl, "Unknown command %" PRIx16 " for cluster %" PRIx16, aCommandId, ZCL_GENERAL_COMMISSIONING_CLUSTER_ID);
return;
Expand All @@ -222,7 +222,7 @@ void DispatchServerCommand(app::Command * apCommandObj, CommandId aCommandId, En
0, // GroupId
ZCL_GENERAL_COMMISSIONING_CLUSTER_ID, aCommandId,
(chip::app::CommandPathFlags::kEndpointIdValid) };
apCommandObj->AddStatusCode(&returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest,
apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest,
Protocols::SecureChannel::Id, Protocols::SecureChannel::kProtocolCodeGeneralFailure);
ChipLogProgress(Zcl,
"Failed to dispatch command, %" PRIu32 "/%" PRIu32 " arguments parsed, TLVError=%" PRIu32
Expand Down
Loading

0 comments on commit 2bac1b1

Please sign in to comment.