From b6baf0ec6c094415bc814cbc91b2e16d450b31d3 Mon Sep 17 00:00:00 2001 From: "Restyled.io" Date: Thu, 24 Oct 2024 17:52:00 +0000 Subject: [PATCH] Restyled by clang-format --- .../static-supported-temperature-levels.cpp | 11 ++++------- .../static-supported-temperature-levels.h | 1 - 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/examples/chef/common/clusters/temperature-control/static-supported-temperature-levels.cpp b/examples/chef/common/clusters/temperature-control/static-supported-temperature-levels.cpp index 97975d29605a71..045825d8faf312 100644 --- a/examples/chef/common/clusters/temperature-control/static-supported-temperature-levels.cpp +++ b/examples/chef/common/clusters/temperature-control/static-supported-temperature-levels.cpp @@ -32,11 +32,9 @@ app::Clusters::TemperatureControl::AppSupportedTemperatureLevelsDelegate sAppSup CharSpan AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions[] = { "Low"_span, "Medium"_span, "High"_span }; const AppSupportedTemperatureLevelsDelegate::EndpointPair AppSupportedTemperatureLevelsDelegate::supportedOptionsByEndpoints - [MATTER_DM_TEMPERATURE_CONTROL_CLUSTER_SERVER_ENDPOINT_COUNT] = { - EndpointPair( - 1 /* endpointId */, AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions, - ArraySize(AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions)) - }; + [MATTER_DM_TEMPERATURE_CONTROL_CLUSTER_SERVER_ENDPOINT_COUNT] = { EndpointPair( + 1 /* endpointId */, AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions, + ArraySize(AppSupportedTemperatureLevelsDelegate::temperatureLevelOptions)) }; uint8_t AppSupportedTemperatureLevelsDelegate::Size() { @@ -73,8 +71,7 @@ CHIP_ERROR AppSupportedTemperatureLevelsDelegate::Next(MutableCharSpan & item) } void emberAfTemperatureControlClusterInitCallback(EndpointId endpoint) { - static_assert(MATTER_DM_TEMPERATURE_CONTROL_CLUSTER_SERVER_ENDPOINT_COUNT == 1, - "This cluster is only enabled for endpoint 1"); + static_assert(MATTER_DM_TEMPERATURE_CONTROL_CLUSTER_SERVER_ENDPOINT_COUNT == 1, "This cluster is only enabled for endpoint 1"); chip::app::Clusters::TemperatureControl::SetInstance(&sAppSupportedTemperatureLevelsDelegate); } diff --git a/examples/chef/common/clusters/temperature-control/static-supported-temperature-levels.h b/examples/chef/common/clusters/temperature-control/static-supported-temperature-levels.h index ba0c3dee9ab417..c39bb171c93c58 100644 --- a/examples/chef/common/clusters/temperature-control/static-supported-temperature-levels.h +++ b/examples/chef/common/clusters/temperature-control/static-supported-temperature-levels.h @@ -43,7 +43,6 @@ class AppSupportedTemperatureLevelsDelegate : public SupportedTemperatureLevelsI static const EndpointPair supportedOptionsByEndpoints[MATTER_DM_TEMPERATURE_CONTROL_CLUSTER_SERVER_ENDPOINT_COUNT]; public: - uint8_t Size() override; CHIP_ERROR Next(MutableCharSpan & item) override;