Skip to content

Commit 1618003

Browse files
authored
fix(matter): commentaries and old work
1 parent 9cec913 commit 1618003

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/Matter/examples/MatterFan/MatterFan.ino

+2-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,8 @@ void loop() {
149149
uint32_t time_diff = millis() - button_time_stamp;
150150
if (button_state && time_diff > debouceTime && digitalRead(buttonPin) == HIGH) {
151151
button_state = false; // released
152-
// builtin button is released - send a click event to the Matter Controller
152+
// builtin button is released - toggle Fan on/off
153+
153154
Fan.toggle();
154155
Serial.printf("User button released. Setting the Fan %s.\r\n", Fan > 0 ? "ON" : "OFF");
155156

0 commit comments

Comments
 (0)