aboutsummaryrefslogtreecommitdiffstats
path: root/klippy/extras/probe.py
diff options
context:
space:
mode:
Diffstat (limited to 'klippy/extras/probe.py')
-rw-r--r--klippy/extras/probe.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py
index 99e4e80e..9aab1d9d 100644
--- a/klippy/extras/probe.py
+++ b/klippy/extras/probe.py
@@ -76,6 +76,10 @@ class PrinterProbe:
if "Timeout during endstop homing" in reason:
reason += HINT_TIMEOUT
raise self.gcode.error(reason)
+ kin = toolhead.get_kinematics()
+ pos = kin.get_position()
+ self.gcode.respond_info(
+ "probe z: %.3f" % (pos[2]))
self.gcode.reset_last_position()
cmd_QUERY_PROBE_help = "Return the status of the z-probe"
def cmd_QUERY_PROBE(self, params):