From cf4f23ebf23f35e358870b19984e75742a06ed7b Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 30 Aug 2018 16:20:23 -0400 Subject: [PATCH] probe: Use probe speed for initial move to the Z height Signed-off-by: Kevin O'Connor --- klippy/extras/probe.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py index d775c1d6..c826e03d 100644 --- a/klippy/extras/probe.py +++ b/klippy/extras/probe.py @@ -183,15 +183,17 @@ class ProbePointsHelper: return self.probe.last_home_position() else: return None - def lift_z(self, z_pos, add=False): + def lift_z(self, z_pos, add=False, speed=None): # Lift toolhead curpos = self.toolhead.get_position() if add: curpos[2] += z_pos else: curpos[2] = z_pos + if speed is None: + speed = self.lift_speed try: - self.toolhead.move(curpos, self.lift_speed) + self.toolhead.move(curpos, speed) except homing.EndstopError as e: self.finalize(False) raise self.gcode.error(str(e)) @@ -214,7 +216,7 @@ class ProbePointsHelper: 'NEXT', self.cmd_NEXT, desc=self.cmd_NEXT_help) self.results = [] self.busy = True - self.lift_z(self.horizontal_move_z) + self.lift_z(self.horizontal_move_z, speed=self.speed) self.move_next() if self.probe is not None: try: