diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-06-02 17:24:33 -0400 |
---|---|---|
committer | KevinOConnor <kevin@koconnor.net> | 2019-06-06 10:08:58 -0400 |
commit | bbc8637ed695f1581363410fc7747a0163535ddf (patch) | |
tree | b4055b7f5ca2b55c51f8caf808365d6975fb7e97 /klippy/extras/probe.py | |
parent | 74cc005ff3c3c93986a3574f86bfa06e613c4e21 (diff) | |
download | kutter-bbc8637ed695f1581363410fc7747a0163535ddf.tar.gz kutter-bbc8637ed695f1581363410fc7747a0163535ddf.tar.xz kutter-bbc8637ed695f1581363410fc7747a0163535ddf.zip |
probe: Be sure to call gcode.reset_last_position() after any manual move
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/probe.py')
-rw-r--r-- | klippy/extras/probe.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py index ccbed1da..5d1c52f9 100644 --- a/klippy/extras/probe.py +++ b/klippy/extras/probe.py @@ -86,6 +86,7 @@ class PrinterProbe: toolhead.move(curpos, speed) except homing.EndstopError as e: raise self.gcode.error(str(e)) + self.gcode.reset_last_position() def _calc_mean(self, positions): count = float(len(positions)) return [sum([pos[i] for pos in positions]) / count @@ -277,6 +278,7 @@ class ProbePointsHelper: except homing.EndstopError as e: self._finalize(False) raise self.gcode.error(str(e)) + self.gcode.reset_last_position() def _move_next(self): # Lift toolhead self._lift_z(self.horizontal_move_z, self.lift_speed) @@ -340,7 +342,6 @@ class ProbePointsHelper: self._move_next() def _finalize(self, success): self.busy = False - self.gcode.reset_last_position() if success: self.finalize_callback(self.probe_offsets, self.results) |