Skip to content

Commit

Permalink
Restore default XY currents after homing
Browse files Browse the repository at this point in the history
  • Loading branch information
leptun committed Feb 19, 2024
1 parent f80fb4c commit e6a4856
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Firmware/tmc2130.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,9 @@ void tmc2130_home_exit()
{
if (tmc2130_sg_homing_axes_mask & mask) {
tmc2130_XYZ_reg_init(axis);
currents[axis].setiRun(tmc2130_current_r[axis]);
currents[axis].setiHold(tmc2130_current_h[axis]);
tmc2130_setup_chopper(axis, tmc2130_mres[axis]);
}
}
tmc2130_sg_homing_axes_mask = 0x00;
Expand Down

0 comments on commit e6a4856

Please sign in to comment.