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 2020-08-24 05:28:33 -04:00 committed by KevinOConnor
parent 6e77fd27cd
commit 9e68105b74
1 changed files with 3 additions and 0 deletions

View File

@ -342,6 +342,9 @@ class ProbePointsHelper:
if len(self.probe_points) < n: if len(self.probe_points) < n:
raise self.printer.config_error( raise self.printer.config_error(
"Need at least %d probe points for %s" % (n, self.name)) "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): def use_xy_offsets(self, use_offsets):
self.use_offsets = use_offsets self.use_offsets = use_offsets
def get_lift_speed(self): def get_lift_speed(self):