probe: add update_probe_points() method to helper

This allows the consumers of the ProbePoints helper to be reconfigured at runtime.

Signed-off-by:  Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine authored and KevinOConnor committed 2020-09-15 20:36:55 -04:00
1 parent 6e77fd27cd
commit 9e68105b74
1 file changed
+3
+3
View File
@@ -342,6 +342,9 @@ class ProbePointsHelper:
if len(self.probe_points) < n:
raise self.printer.config_error(
"Need at least %d probe points for %s" % (n, self.name))
def update_probe_points(self, points, min_points):
self.probe_points = points
self.minimum_points(min_points)
def use_xy_offsets(self, use_offsets):
self.use_offsets = use_offsets
def get_lift_speed(self):