diff options
author | shiftingtech <53156353+shiftingtech@users.noreply.github.com> | 2021-08-02 14:08:19 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-02 16:08:19 -0400 |
commit | 36e39692194a3f5a6a665592b4838451eb15ec56 (patch) | |
tree | ac955bd3936cbdc8dc1b9849c75b2cf51705ba1b | |
parent | b8f6b904670257868ba3d9674c1431b8c8bd7c58 (diff) | |
download | kutter-36e39692194a3f5a6a665592b4838451eb15ec56.tar.gz kutter-36e39692194a3f5a6a665592b4838451eb15ec56.tar.xz kutter-36e39692194a3f5a6a665592b4838451eb15ec56.zip |
probe: bugfix to z_offset_apply_probe (#4553)
Command was accessing the wrong variable for the existing z offset,
leading to bad behavior.
Signed-off-by: Ben Eastep <shifting@shifting.ca>
-rw-r--r-- | klippy/extras/probe.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py index 3f27a73e..d7af1ec1 100644 --- a/klippy/extras/probe.py +++ b/klippy/extras/probe.py @@ -267,13 +267,12 @@ class PrinterProbe: manual_probe.ManualProbeHelper(self.printer, gcmd, self.probe_calibrate_finalize) def cmd_Z_OFFSET_APPLY_PROBE(self,gcmd): - z_offset = self.probe_calibrate_z offset = self.gcode_move.get_status()['homing_origin'].z configfile = self.printer.lookup_object('configfile') if offset == 0: self.gcode.respond_info("Nothing to do: Z Offset is 0") else: - new_calibrate = self.probe_calibrate_z - offset + new_calibrate = self.z_offset - offset self.gcode.respond_info( "%s: z_offset: %.3f\n" "The SAVE_CONFIG command will update the printer config file\n" |