Skip to content

Commit 2fcdd35

Browse files
committed
feat(matter): change example messages within fan modes
1 parent e679fb6 commit 2fcdd35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/Matter/examples/MatterFan/MatterFan.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void setup() {
8787
Fan.onChangeMode([](MatterFan::FanMode_t fanMode) {
8888
// when the Fan is turned on using Mode Selection, while it is OFF, shall start it by setting the speed to 50%
8989
if (Fan.getSpeedPercent() == 0 && fanMode != MatterFan::FAN_MODE_OFF) {
90-
Serial.println("Starting Smart Mode -- set speed to 50%");
90+
Serial.printf("Fan set to %s mode -- speed percentage will go to 50%\r\n", Fan.getFanModeString(fanMode));
9191
// ATTR_SET do not update the attribute, just set it to avoid inifinite loop
9292
return Fan.setSpeedPercent(50, Fan.ATTR_SET);
9393
}

0 commit comments

Comments
 (0)