From 2217805fe4e080534dabc9efbd0b69a9d87c0bd2 Mon Sep 17 00:00:00 2001 From: Song Guo Date: Wed, 16 Jun 2021 13:35:00 +0800 Subject: [PATCH] [hotfix] Run codegen after #7598 (#7677) Per @yunhanw-google this appears to fix the build, force merging in. --- src/controller/data_model/gen/IMClusterCommandHandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/controller/data_model/gen/IMClusterCommandHandler.cpp b/src/controller/data_model/gen/IMClusterCommandHandler.cpp index 6d0f63be9340cd..f2f0bdea10fb1e 100644 --- a/src/controller/data_model/gen/IMClusterCommandHandler.cpp +++ b/src/controller/data_model/gen/IMClusterCommandHandler.cpp @@ -4196,7 +4196,8 @@ void DispatchClientCommand(app::Command * apCommandObj, CommandId aCommandId, En ZCL_OTA_SERVER_CLUSTER_ID, aCommandId, (chip::app::CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kNotFound, - Protocols::SecureChannel::Id, Protocols::SecureChannel::kProtocolCodeGeneralFailure); + Protocols::SecureChannel::Id, + Protocols::InteractionModel::ProtocolCode::UnsupportedCommand); ChipLogError(Zcl, "Unknown command %" PRIx16 " for cluster %" PRIx16, aCommandId, ZCL_OTA_SERVER_CLUSTER_ID); return; } @@ -4210,7 +4211,7 @@ void DispatchClientCommand(app::Command * apCommandObj, CommandId aCommandId, En ZCL_OTA_SERVER_CLUSTER_ID, aCommandId, (chip::app::CommandPathFlags::kEndpointIdValid) }; apCommandObj->AddStatusCode(returnStatusParam, Protocols::SecureChannel::GeneralStatusCode::kBadRequest, - Protocols::SecureChannel::Id, Protocols::SecureChannel::kProtocolCodeGeneralFailure); + Protocols::SecureChannel::Id, Protocols::InteractionModel::ProtocolCode::InvalidCommand); ChipLogProgress(Zcl, "Failed to dispatch command, %" PRIu32 "/%" PRIu32 " arguments parsed, TLVError=%" PRIu32 ", UnpackError=%" PRIu32 " (last decoded tag = %" PRIu32,