mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-24 07:04:01 -06:00
endstop_phase: Use set_tag_position() instead of set_commanded_position()
Use the new get/set_tag_position() calls to avoid altering the low-level kinematic position. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
224574da4a
commit
eed371e924
2 changed files with 5 additions and 5 deletions
|
@ -88,12 +88,12 @@ class EndstopPhase:
|
|||
stepper = rail.get_steppers()[0]
|
||||
if stepper.get_name() != self.name:
|
||||
continue
|
||||
orig_pos = rail.get_commanded_position()
|
||||
orig_pos = rail.get_tag_position()
|
||||
offset = self.get_homed_offset(stepper)
|
||||
pos = self.align_endstop(orig_pos) + offset
|
||||
if pos == orig_pos:
|
||||
return False
|
||||
rail.set_commanded_position(pos)
|
||||
rail.set_tag_position(pos)
|
||||
return True
|
||||
|
||||
class EndstopPhases:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue