aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2018-07-15 10:30:27 -0400
committerKevin O'Connor <kevin@koconnor.net>2018-07-15 10:30:27 -0400
commit94dc8167c9de120744d54403d60f4baf88de3926 (patch)
tree55aea7b57ad0d4c84364adc055a66b69b0cb12e7
parent260d12af6d2b328eba4841b9e05769f9c35c5095 (diff)
downloadkutter-94dc8167c9de120744d54403d60f4baf88de3926.tar.gz
kutter-94dc8167c9de120744d54403d60f4baf88de3926.tar.xz
kutter-94dc8167c9de120744d54403d60f4baf88de3926.zip
z_tilt: Don't default "points" parameter to "z_positions" parameter
It's rare to have all the Z stepper locations directly under the printable surface, so using z_positions for points is not a good default. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--config/example-extras.cfg3
-rw-r--r--klippy/extras/z_tilt.py3
2 files changed, 2 insertions, 4 deletions
diff --git a/config/example-extras.cfg b/config/example-extras.cfg
index 89ca31dc..84d8a05a 100644
--- a/config/example-extras.cfg
+++ b/config/example-extras.cfg
@@ -77,8 +77,7 @@
# etc. This parameter must be provided.
#points:
# A newline separated list of X,Y points that should be probed
-# during a Z_TILT_ADJUST command. The default is to use the same
-# positions described in z_positions.
+# during a Z_TILT_ADJUST command. This parameter must be provided.
#speed: 50
# The speed (in mm/s) of non-probing moves during the calibration.
# The default is 50.
diff --git a/klippy/extras/z_tilt.py b/klippy/extras/z_tilt.py
index 71d53831..98a1807b 100644
--- a/klippy/extras/z_tilt.py
+++ b/klippy/extras/z_tilt.py
@@ -18,8 +18,7 @@ class ZTilt:
except:
raise config.error("Unable to parse z_positions in %s" % (
config.get_name()))
- self.probe_helper = probe.ProbePointsHelper(
- config, self, default_points=self.z_positions)
+ self.probe_helper = probe.ProbePointsHelper(config, self)
self.z_steppers = []
# Register Z_TILT_ADJUST command
self.gcode = self.printer.lookup_object('gcode')