From 8d9ca6f2dd96e5b1c71999fb8497487fcb091493 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 6 Dec 2017 09:59:00 -0500 Subject: homing: Directly interact with the kinematic class when homing Move the homing logic out of toolhead.py and into homing.py. This simplifies the toolhead logic and centralizes the homing code. Signed-off-by: Kevin O'Connor --- klippy/gcode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'klippy/gcode.py') diff --git a/klippy/gcode.py b/klippy/gcode.py index 4af97e8a..c25608fb 100644 --- a/klippy/gcode.py +++ b/klippy/gcode.py @@ -354,11 +354,11 @@ class GCodeParser: axes.append(self.axis2pos[axis]) if not axes: axes = [0, 1, 2] - homing_state = homing.Homing(self.toolhead, axes) + homing_state = homing.Homing(self.toolhead) if self.is_fileinput: homing_state.set_no_verify_retract() try: - self.toolhead.home(homing_state) + homing_state.home_axes(axes) except homing.EndstopError as e: raise error(str(e)) newpos = self.toolhead.get_position() -- cgit v1.2.3-70-g09d2