probe: Allow retries from ProbePointsHelper

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2019-05-23 19:20:20 -04:00 committed by KevinOConnor
parent 771e7b2987
commit bdf5898891
1 changed files with 4 additions and 2 deletions

View File

@ -285,8 +285,10 @@ class ProbePointsHelper:
if len(self.results) >= len(self.probe_points): if len(self.results) >= len(self.probe_points):
self.gcode.reset_last_position() self.gcode.reset_last_position()
toolhead.get_last_move_time() toolhead.get_last_move_time()
self.finalize_callback(self.probe_offsets, self.results) res = self.finalize_callback(self.probe_offsets, self.results)
if res != "retry":
return True return True
self.results = []
# Move to next XY probe point # Move to next XY probe point
curpos[:2] = self.probe_points[len(self.results)] curpos[:2] = self.probe_points[len(self.results)]
toolhead.move(curpos, self.speed) toolhead.move(curpos, self.speed)