mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-06 21:44:13 -06:00
probe: ProbePointsHelper adjustable minimum points
Factor out minimum required points check for ProbePointsHelper in prep for setting different values for quad_gantry_level and z_tilt_adjust Signed-off-by: John "Fess" Fessenden <fess@fess.org>
This commit is contained in:
parent
84bae6ff41
commit
9887e72570
7 changed files with 12 additions and 4 deletions
|
@ -23,6 +23,7 @@ class ZTilt:
|
|||
if len(z_positions) < 2:
|
||||
raise config.error("z_tilt requires at least two z_positions")
|
||||
self.probe_helper = probe.ProbePointsHelper(config, self.probe_finalize)
|
||||
self.probe_helper.minimum_points(3)
|
||||
self.z_steppers = []
|
||||
# Register Z_TILT_ADJUST command
|
||||
self.gcode = self.printer.lookup_object('gcode')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue