Skip to content

Commit

Permalink
fix bag, do not reset offset
Browse files Browse the repository at this point in the history
  • Loading branch information
SokolovJek authored Sep 11, 2023
1 parent 2221b0c commit 07cbf88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion klippy/extras/probe.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit 07cbf88

Please sign in to comment.