From 0824d3231975428429141dbd06cd6b04a4a74e14 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 15 Sep 2016 12:20:16 -0400 Subject: [PATCH] cartesian: Minor change to clarify end stop homing direction code Signed-off-by: Kevin O'Connor --- klippy/cartesian.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/klippy/cartesian.py b/klippy/cartesian.py index 653b2276..4fff4ab7 100644 --- a/klippy/cartesian.py +++ b/klippy/cartesian.py @@ -42,8 +42,8 @@ class CartKinematics: s = self.steppers[axis] # Determine moves if s.homing_positive_dir: - pos = s.position_endstop + 1.5*( - s.position_min - s.position_endstop) + pos = s.position_endstop - 1.5*( + s.position_endstop - s.position_min) rpos = s.position_endstop - s.homing_retract_dist r2pos = rpos - s.homing_retract_dist else: