Skip to content

Commit 6532226

Browse files
authored
Method configure4PWM of esp8266_mcu.cpp bug fix
1 parent 8c65a5f commit 6532226

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/drivers/hardware_specific/esp8266_mcu.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void* _configure4PWM(long pwm_frequency,const int pinA, const int pinB, const in
7070
_setHighFrequency(pwm_frequency, pinC);
7171
_setHighFrequency(pwm_frequency, pinD);
7272
GenericDriverParams* params = new GenericDriverParams {
73-
.pins = { pin1A, pin1B, pin2A, pin2B },
73+
.pins = { pinA, pinB, pinC, pinD },
7474
.pwm_frequency = pwm_frequency
7575
};
7676
return params;
@@ -112,4 +112,4 @@ void _writeDutyCycle4PWM(float dc_1a, float dc_1b, float dc_2a, float dc_2b, vo
112112
analogWrite(((GenericDriverParams*)params)->pins[3], 255.0f*dc_2b);
113113
}
114114

115-
#endif
115+
#endif

0 commit comments

Comments
 (0)