cartesian: Minor change to clarify end stop homing direction code

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2016-09-15 12:20:16 -04:00
parent 9ff5600421
commit 0824d32319
1 changed files with 2 additions and 2 deletions

View File

@ -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: