Skip to content

Commit

Permalink
Restyled by clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
restyled-commits authored and stingchang committed Oct 24, 2024
1 parent 8eb39ef commit b6baf0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b6baf0e

Please sign in to comment.