Skip to content

Commit f9b2dec

Browse files
committed
fix(matter): printf formating with '%' -> '%%'
1 parent 6759dd7 commit f9b2dec

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.printf("Fan set to %s mode -- speed percentage will go to 50%\r\n", Fan.getFanModeString(fanMode));
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)