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

Appearance settings

Commit 6e87b0d

Browse filesBrowse files
ci(pre-commit): Apply automatic fixes
1 parent 0d6ec1b commit 6e87b0d
Copy full SHA for 6e87b0d

File tree

4 files changed

+9
-8
lines changed
Filter options

4 files changed

+9
-8
lines changed

‎libraries/Matter/examples/MatterDimmableLight/MatterDimmableLight.ino

Copy file name to clipboardExpand all lines: libraries/Matter/examples/MatterDimmableLight/MatterDimmableLight.ino
+5-5Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,11 @@ void setup() {
9696
DimmableLight.onChange(setLightState);
9797

9898
// lambda functions are used to set the attribute change callbacks
99-
DimmableLight.onChangeOnOff([](bool state) {
100-
Serial.printf("Light OnOff changed to %s\r\n", state ? "ON" : "OFF");
99+
DimmableLight.onChangeOnOff([](bool state) {
100+
Serial.printf("Light OnOff changed to %s\r\n", state ? "ON" : "OFF");
101101
return true;
102102
});
103-
DimmableLight.onChangeBrightness([](uint8_t level) {
103+
DimmableLight.onChangeBrightness([](uint8_t level) {
104104
Serial.printf("Light Brightness changed to %d\r\n", level);
105105
return true;
106106
});
@@ -111,7 +111,7 @@ void setup() {
111111
if (Matter.isDeviceCommissioned()) {
112112
Serial.println("Matter Node is commissioned and connected to Wi-Fi. Ready for use.");
113113
Serial.printf("Initial state: %s | brightness: %d\r\n", DimmableLight ? "ON" : "OFF", DimmableLight.getBrightness());
114-
// configure the Light based on initial on-off state and brightness
114+
// configure the Light based on initial on-off state and brightness
115115
DimmableLight.updateAccessory();
116116
}
117117
}
@@ -139,7 +139,7 @@ void loop() {
139139
}
140140
}
141141
Serial.printf("Initial state: %s | brightness: %d\r\n", DimmableLight ? "ON" : "OFF", DimmableLight.getBrightness());
142-
// configure the Light based on initial on-off state and brightness
142+
// configure the Light based on initial on-off state and brightness
143143
DimmableLight.updateAccessory();
144144
Serial.println("Matter Node is commissioned and connected to Wi-Fi. Ready for use.");
145145
}

‎libraries/Matter/src/MatterEndPoint.h

Copy file name to clipboardExpand all lines: libraries/Matter/src/MatterEndPoint.h
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class MatterEndPoint {
3030
}
3131
// this function is called by Matter internal event processor. It could be overwritten by the application, if necessary.
3232
virtual bool attributeChangeCB(uint16_t endpoint_id, uint32_t cluster_id, uint32_t attribute_id, esp_matter_attr_val_t *val) = 0;
33+
3334
protected:
3435
uint16_t endpoint_id = 0;
3536
};

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

Copy file name to clipboardExpand all lines: libraries/Matter/src/MatterEndpoints/MatterDimmableLight.cpp
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ bool MatterDimmableLight::attributeChangeCB(uint16_t endpoint_id, uint32_t clust
3333
log_d("Dimmable Attr update callback: endpoint: %u, cluster: %u, attribute: %u, val: %u", endpoint_id, cluster_id, attribute_id, val->val.u32);
3434

3535
if (endpoint_id == getEndPointId()) {
36-
switch(cluster_id) {
36+
switch (cluster_id) {
3737
case OnOff::Id:
3838
if (attribute_id == OnOff::Attributes::OnOff::Id) {
3939
log_d("DimmableLight On/Off State changed to %d", val->val.b);
@@ -61,7 +61,7 @@ bool MatterDimmableLight::attributeChangeCB(uint16_t endpoint_id, uint32_t clust
6161
brightnessLevel = val->val.u8;
6262
}
6363
}
64-
break;
64+
break;
6565
}
6666
}
6767
return ret;

‎libraries/Matter/src/MatterEndpoints/MatterOnOffLight.cpp

Copy file name to clipboardExpand all lines: libraries/Matter/src/MatterEndpoints/MatterOnOffLight.cpp
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ bool MatterOnOffLight::attributeChangeCB(uint16_t endpoint_id, uint32_t cluster_
2929
log_e("Matter On-Off Light device has not begun.");
3030
return false;
3131
}
32-
32+
3333
log_d("OnOff Attr update callback: endpoint: %u, cluster: %u, attribute: %u, val: %u", endpoint_id, cluster_id, attribute_id, val->val.u32);
3434

3535
if (endpoint_id == getEndPointId()) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.