From 07cbf88d03177ef2f3185b49d9387b9be6fe843f Mon Sep 17 00:00:00 2001 From: Sokolov Evgenii <81033310+SokolovJek@users.noreply.github.com> Date: Mon, 11 Sep 2023 16:09:05 +0300 Subject: [PATCH] fix bag, do not reset offset --- klippy/extras/probe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py index d5d807a24ee6..8e133d843818 100644 --- a/klippy/extras/probe.py +++ b/klippy/extras/probe.py @@ -310,7 +310,7 @@ def cmd_PROBE_CALIBRATE(self, gcmd): self._move(curpos, self.speed) cmd_Z_OFFSET_APPLY_PROBE_help = "Adjust the probe's offset" def cmd_Z_OFFSET_APPLY_PROBE(self, gcmd): - if gcmd.get_float('Z', 0.0) > 0.0: + if gcmd.get_float('Z', 0.0) >= 0.0: self.z_offset = gcmd.get_float('Z', 0.0) self.gcode.respond_info("Z Offset is %.3f" % (self.z_offset)) if self.check_diff_offset(gcmd, 'X'):