Skip to content

Commit 7ebf6f8

Browse files
authored
Merge pull request #36 from big-penguin/master
FIX steppers not working on esp32
2 parents 0d9156e + 929fb29 commit 7ebf6f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/hardware_utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ bldc_motor_slots_t esp32_bldc_motor_slots[4] = {
3737

3838
// define stepper motor slots array
3939
stepper_motor_slots_t esp32_stepper_motor_slots[2] = {
40-
{_EMPTY_SLOT, &MCPWM1, MCPWM_UNIT_0, MCPWM_OPR_A, MCPWM_OPR_B, MCPWM0A, MCPWM1A, MCPWM0B, MCPWM1B}, // 1st motor will be on MCPWM1
40+
{_EMPTY_SLOT, &MCPWM1, MCPWM_UNIT_1, MCPWM_OPR_A, MCPWM_OPR_B, MCPWM0A, MCPWM1A, MCPWM0B, MCPWM1B}, // 1st motor will be on MCPWM1
4141
{_EMPTY_SLOT, &MCPWM0, MCPWM_UNIT_0, MCPWM_OPR_A, MCPWM_OPR_B, MCPWM0A, MCPWM1A, MCPWM0B, MCPWM1B}, // 1st motor will be on MCPWM0
4242
};
4343

0 commit comments

Comments
 (0)