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:
parent
6e77fd27cd
commit
9e68105b74
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue