mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-23 14:44:20 -06:00
stepper: Only align the stepper motor to a full step when requested
Add a new config option 'homing_endstop_align_zero' to enable the alignment of the endstop to a stepper full step. It's possible one may wish to specify a homing_endstop_phase while not aligning the endstop. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
ef09ac5a7f
commit
3ffab763c0
2 changed files with 8 additions and 1 deletions
|
@ -87,7 +87,8 @@ class PrinterHomingStepper(PrinterStepper):
|
|||
self.homing_endstop_phase = config.getint(
|
||||
'homing_endstop_phase', None, minval=0
|
||||
, maxval=self.homing_stepper_phases-1)
|
||||
if self.homing_endstop_phase is not None:
|
||||
if (self.homing_endstop_phase is not None
|
||||
and config.getboolean('homing_endstop_align_zero', False)):
|
||||
# Adjust the endstop position so 0.0 is always at a full step
|
||||
micro_steps = self.homing_stepper_phases // 4
|
||||
phase_offset = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue