From 9396431c6bcebf36c3e34ed1062d3ec646bf5b9b Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 13 Nov 2019 18:42:07 -0500 Subject: [PATCH] stepper: Do not call itersolve_set_commanded_pos() after homing Now that the homing code does not use get_commanded_position(), it is no longer necessary to alter the low-level commanded position after a homing move. Signed-off-by: Kevin O'Connor --- klippy/stepper.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/klippy/stepper.py b/klippy/stepper.py index eff0fa67..b9be551d 100644 --- a/klippy/stepper.py +++ b/klippy/stepper.py @@ -134,8 +134,7 @@ class MCU_stepper: mcu_pos_dist = params['pos'] * self._step_dist if self._invert_dir: mcu_pos_dist = -mcu_pos_dist - self._ffi_lib.itersolve_set_commanded_pos( - self._stepper_kinematics, mcu_pos_dist - self._mcu_position_offset) + self._mcu_position_offset = mcu_pos_dist - self.get_commanded_position() def set_trapq(self, tq): if tq is None: ffi_main, self._ffi_lib = chelper.get_ffi()