Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 43c419e

Browse files
ci(pre-commit): Apply automatic fixes
1 parent 3f7c597 commit 43c419e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎libraries/Matter/src/MatterEndpoints/MatterDimmableLight.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class MatterDimmableLight : public MatterEndPoint {
3737
bool setBrightness(uint8_t newBrightness); // returns true if successful
3838
uint8_t getBrightness(); // returns current brightness
3939

40-
// User Callback for whenever the Light On/Off state is changed by the Matter Controller
40+
// User Callback for whenever the Light On/Off state is changed by the Matter Controller
4141
using EndPointOnOffCB = std::function<bool(bool)>;
4242
void onChangeOnOff(EndPointOnOffCB onChangeCB) {
4343
_onChangeOnOffCB = onChangeCB;
@@ -59,7 +59,7 @@ class MatterDimmableLight : public MatterEndPoint {
5959
// It is necessary to set a user callback function using onChange() to handle the physical light state
6060
void updateAccessory();
6161

62-
operator bool(); // returns current on/off light state
62+
operator bool(); // returns current on/off light state
6363
void operator=(bool state); // turns light on or off
6464
// this function is called by Matter internal event processor. It could be overwritten by the application, if necessary.
6565
bool attributeChangeCB(uint16_t endpoint_id, uint32_t cluster_id, uint32_t attribute_id, esp_matter_attr_val_t *val);

‎libraries/Matter/src/MatterEndpoints/MatterOnOffPlugin.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class MatterOnOffPlugin : public MatterEndPoint {
3535
void onChange(EndPointCB onChangeCB) {
3636
_onChangeCB = onChangeCB;
3737
}
38-
38+
3939
// User Callback for whenever the On/Off state is changed by the Matter Controller
4040
void onChangeOnOff(EndPointCB onChangeCB) {
4141
_onChangeOnOffCB = onChangeCB;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /