diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-12-06 09:59:00 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-12-06 19:13:54 -0500 |
commit | 8d9ca6f2dd96e5b1c71999fb8497487fcb091493 (patch) | |
tree | dda12433dace1ab95dc26d38fb4dbf752591cb39 /klippy/gcode.py | |
parent | 1d6af72de5b28a32ef5506b312943caeecaf787b (diff) | |
download | kutter-8d9ca6f2dd96e5b1c71999fb8497487fcb091493.tar.gz kutter-8d9ca6f2dd96e5b1c71999fb8497487fcb091493.tar.xz kutter-8d9ca6f2dd96e5b1c71999fb8497487fcb091493.zip |
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 <kevin@koconnor.net>
Diffstat (limited to 'klippy/gcode.py')
-rw-r--r-- | klippy/gcode.py | 4 |
1 files changed, 2 insertions, 2 deletions
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() |