From 2da9cdaa6ea97fc718f5b63d7f199a0c6005171c Mon Sep 17 00:00:00 2001 From: Vivien Nicolas Date: Wed, 8 Feb 2023 23:03:01 +0100 Subject: [PATCH] Update generated code --- .../app-common/zap-generated/cluster-enums-check.h | 8 -------- .../app-common/app-common/zap-generated/cluster-enums.h | 7 ------- zzz_generated/app-common/app-common/zap-generated/enums.h | 8 -------- 3 files changed, 23 deletions(-) diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h index a823faf417234f..809c9433977f7b 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums-check.h @@ -1034,17 +1034,9 @@ static auto __attribute__((unused)) EnsureKnownEnumValue(AdministratorCommission using EnumType = AdministratorCommissioning::StatusCode; switch (val) { -// Need to convert consumers to using the new enum classes, so we -// don't just have casts all over. -#ifdef CHIP_USE_ENUM_CLASS_FOR_IM_ENUM case EnumType::kBusy: case EnumType::kPAKEParameterError: case EnumType::kWindowNotOpen: -#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM - case EMBER_ZCL_STATUS_CODE_BUSY: - case EMBER_ZCL_STATUS_CODE_PAKE_PARAMETER_ERROR: - case EMBER_ZCL_STATUS_CODE_WINDOW_NOT_OPEN: -#endif // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM return val; default: return static_cast(0); diff --git a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h index 47a5293538d1e6..5eb983bf609fd8 100644 --- a/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h +++ b/zzz_generated/app-common/app-common/zap-generated/cluster-enums.h @@ -1192,9 +1192,6 @@ enum class CommissioningWindowStatusEnum : uint8_t kUnknownEnumValue = 3, }; -// Need to convert consumers to using the new enum classes, so we -// don't just have casts all over. -#ifdef CHIP_USE_ENUM_CLASS_FOR_IM_ENUM // Enum for StatusCode enum class StatusCode : uint8_t { @@ -1207,10 +1204,6 @@ enum class StatusCode : uint8_t // enum value. This specific should never be transmitted. kUnknownEnumValue = 0, }; -#else // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM -using StatusCode = EmberAfStatusCode; -static StatusCode __attribute__((unused)) kStatusCodekUnknownEnumValue = static_cast(0); -#endif // CHIP_USE_ENUM_CLASS_FOR_IM_ENUM } // namespace AdministratorCommissioning namespace OperationalCredentials { diff --git a/zzz_generated/app-common/app-common/zap-generated/enums.h b/zzz_generated/app-common/app-common/zap-generated/enums.h index 2e20556e1826d9..dc60f446ad0115 100644 --- a/zzz_generated/app-common/app-common/zap-generated/enums.h +++ b/zzz_generated/app-common/app-common/zap-generated/enums.h @@ -281,14 +281,6 @@ enum EmberAfSecurityType : uint8_t EMBER_ZCL_SECURITY_TYPE_WPA3 = 5, }; -// Enum for StatusCode -enum EmberAfStatusCode : uint8_t -{ - EMBER_ZCL_STATUS_CODE_BUSY = 2, - EMBER_ZCL_STATUS_CODE_PAKE_PARAMETER_ERROR = 3, - EMBER_ZCL_STATUS_CODE_WINDOW_NOT_OPEN = 4, -}; - // Enum for StepMode enum EmberAfStepMode : uint8_t {