From b2776e315bfbcfd6bcc546e573e0a3868bf364c8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Tue, 3 Dec 2024 06:04:57 +0000 Subject: [PATCH] ci(pre-commit): Apply automatic fixes --- libraries/Matter/src/MatterEndpoints/MatterGenericSwitch.cpp | 5 ++--- libraries/Matter/src/MatterEndpoints/MatterGenericSwitch.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libraries/Matter/src/MatterEndpoints/MatterGenericSwitch.cpp b/libraries/Matter/src/MatterEndpoints/MatterGenericSwitch.cpp index cc1786477fc..f5c6c9d750f 100644 --- a/libraries/Matter/src/MatterEndpoints/MatterGenericSwitch.cpp +++ b/libraries/Matter/src/MatterEndpoints/MatterGenericSwitch.cpp @@ -24,8 +24,7 @@ using namespace esp_matter::endpoint; using namespace esp_matter::cluster; using namespace chip::app::Clusters; -MatterGenericSwitch::MatterGenericSwitch() { -} +MatterGenericSwitch::MatterGenericSwitch() {} MatterGenericSwitch::~MatterGenericSwitch() { end(); @@ -55,7 +54,7 @@ bool MatterGenericSwitch::begin() { cluster::groups::config_t groups_config; cluster::groups::create(endpoint, &groups_config, CLUSTER_FLAG_SERVER | CLUSTER_FLAG_CLIENT); - cluster_t* aCluster = cluster::get(endpoint,Descriptor::Id); + cluster_t *aCluster = cluster::get(endpoint, Descriptor::Id); esp_matter::cluster::descriptor::feature::taglist::add(aCluster); cluster::fixed_label::config_t fl_config; diff --git a/libraries/Matter/src/MatterEndpoints/MatterGenericSwitch.h b/libraries/Matter/src/MatterEndpoints/MatterGenericSwitch.h index 4f90b249d79..14118462932 100644 --- a/libraries/Matter/src/MatterEndpoints/MatterGenericSwitch.h +++ b/libraries/Matter/src/MatterEndpoints/MatterGenericSwitch.h @@ -25,7 +25,7 @@ class MatterGenericSwitch : public MatterEndPoint { MatterGenericSwitch(); ~MatterGenericSwitch(); virtual bool begin(); - void end(); // this will just stop processing Matter events + void end(); // this will just stop processing Matter events // send a simple click event to the Matter Controller void click();