Restore default XY currents after homing

This commit is contained in:
Alex Voinea 2024-02-19 10:52:01 +01:00
parent 7aff0db645
commit 40771fe7a4
No known key found for this signature in database
GPG Key ID: 37EDFD565CB33BAD
1 changed files with 3 additions and 0 deletions

View File

@ -439,6 +439,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;