From 4115a77342239bfbef3be2463e3ba6b5c3616167 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 16 Aug 2020 22:02:23 -0400 Subject: gcode: Automatically call reset_last_position() on a toolhead set_position() Generate a "toolhead:set_position" event on a call to toolhead.set_position() and use that event to automatically call gcode.reset_last_position(). Signed-off-by: Kevin O'Connor --- klippy/extras/probe.py | 1 - 1 file changed, 1 deletion(-) (limited to 'klippy/extras/probe.py') diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py index 02d1b5b9..539a6572 100644 --- a/klippy/extras/probe.py +++ b/klippy/extras/probe.py @@ -123,7 +123,6 @@ class PrinterProbe: pos = toolhead.get_position() self.gcode.respond_info("probe at %.3f,%.3f is z=%.6f" % (pos[0], pos[1], pos[2])) - self.gcode.reset_last_position() return pos[:3] def _move(self, coord, speed): toolhead = self.printer.lookup_object('toolhead') -- cgit v1.2.3-70-g09d2