aboutsummaryrefslogtreecommitdiffstats
path: root/klippy
diff options
context:
space:
mode:
authorArne Jansen <arne@die-jansens.de>2019-03-10 13:42:38 +0000
committerKevin O'Connor <kevin@koconnor.net>2019-03-10 12:00:35 -0400
commitf1454392678a3e3fe364d74fd83d1b2698acfe26 (patch)
tree0a5b54b393dac04755ea5633719de4dfa2e2e441 /klippy
parent34d32c782322e18842df6dab308490fd35a1f1f1 (diff)
downloadkutter-f1454392678a3e3fe364d74fd83d1b2698acfe26.tar.gz
kutter-f1454392678a3e3fe364d74fd83d1b2698acfe26.tar.xz
kutter-f1454392678a3e3fe364d74fd83d1b2698acfe26.zip
z_tilt: bugfix for final correction of z-offset
The z_adjust offset provided to adjust_steppers is calculated given the steppers adjust exactly according to the given x_adjust/y_adjust. As the algorithm eliminates an offset that is common to all steppers, this offset must be taken into account in the final correction. Signed-off-by: Arne Jansen <arne@die-jansens.de> Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy')
-rw-r--r--klippy/extras/z_tilt.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/klippy/extras/z_tilt.py b/klippy/extras/z_tilt.py
index bcbfddd9..d679d398 100644
--- a/klippy/extras/z_tilt.py
+++ b/klippy/extras/z_tilt.py
@@ -99,7 +99,7 @@ class ZTilt:
# Z should now be level - do final cleanup
last_stepper_offset, last_stepper = positions[-1]
last_stepper.set_ignore_move(False)
- curpos[2] -= z_adjust
+ curpos[2] -= z_adjust - first_stepper_offset
toolhead.set_position(curpos)
self.gcode.reset_last_position()