Skip to content

Commit e2bb733

Browse files
authored
fix(matter): wrong copy paste
1 parent dbe2cb0 commit e2bb733

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/Matter/examples/MatterFan/MatterFan.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void fanDCMotorDrive(bool fanState, uint8_t speedPercent) {
5151
// turn off the Fan
5252
#ifndef RGB_BUILTIN
5353
// after analogWrite(), it is necessary to set the GPIO to digital mode first
54-
pinMode(ledPin, OUTPUT);
54+
pinMode(dcMotorPin, OUTPUT);
5555
#endif
5656
digitalWrite(dcMotorPin, LOW);
5757
} else {

0 commit comments

Comments
 (0)