From 9e68105b749235445b65a3981a879ceb7bf70fb7 Mon Sep 17 00:00:00 2001 From: Arksine Date: Mon, 24 Aug 2020 05:28:33 -0400 Subject: [PATCH] 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 --- klippy/extras/probe.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py index faf65f99..e7ab5d00 100644 --- a/klippy/extras/probe.py +++ b/klippy/extras/probe.py @@ -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):