From 1d21bf66c605d114055e50d715e2dcbe2ddfd86a Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Wed, 20 Dec 2017 14:11:38 -0500 Subject: homing: Handle speed rounding when homing speed greater than max_velocity Commit 002dc0df added rounding to the homing speed, but it did not work if the configured homing speed was less than the printer's maximum velocity. Move the speed rounding from stepper.py to homing.py and make sure the rounded speed is less than the maximum speed. Signed-off-by: Kevin O'Connor --- klippy/corexy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'klippy/corexy.py') diff --git a/klippy/corexy.py b/klippy/corexy.py index 3eac2e26..8ace928e 100644 --- a/klippy/corexy.py +++ b/klippy/corexy.py @@ -56,7 +56,9 @@ class CoreXYKinematics: rpos = s.position_endstop + s.homing_retract_dist r2pos = rpos + s.homing_retract_dist # Initial homing - homing_speed = s.get_homing_speed() + homing_speed = s.homing_speed + if axis == 2: + homing_speed = min(homing_speed, self.max_z_velocity) homepos = [None, None, None, None] homepos[axis] = s.position_endstop coord = [None, None, None, None] -- cgit v1.2.3-70-g09d2