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();