From bdf5898891568dd12ab04cb1a032a1fd31761467 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Thu, 23 May 2019 19:20:20 -0400 Subject: [PATCH] probe: Allow retries from ProbePointsHelper Signed-off-by: Kevin O'Connor --- klippy/extras/probe.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py index b6deec4f..dc6c4779 100644 --- a/klippy/extras/probe.py +++ b/klippy/extras/probe.py @@ -285,8 +285,10 @@ class ProbePointsHelper: if len(self.results) >= len(self.probe_points): self.gcode.reset_last_position() toolhead.get_last_move_time() - self.finalize_callback(self.probe_offsets, self.results) - return True + res = self.finalize_callback(self.probe_offsets, self.results) + if res != "retry": + return True + self.results = [] # Move to next XY probe point curpos[:2] = self.probe_points[len(self.results)] toolhead.move(curpos, self.speed)