From 11e9bb286ebd502a18d4ded36d14054021350441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20=E2=80=9CArtefact2=E2=80=9D=20Dal=20Maso?= Date: Mon, 20 Aug 2018 17:51:34 +0200 Subject: [PATCH] probe: Allow restarting an incomplete probe set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Romain “Artefact2” Dal Maso --- klippy/extras/probe.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/klippy/extras/probe.py b/klippy/extras/probe.py index 0f4bdf96..4164ef14 100644 --- a/klippy/extras/probe.py +++ b/klippy/extras/probe.py @@ -184,6 +184,9 @@ class ProbePointsHelper: # Begin probing self.toolhead = self.printer.lookup_object('toolhead') self.gcode = self.printer.lookup_object('gcode') + # Unregister NEXT command in case we are starting over from an + # unfinalized calibration + self.gcode.register_command('NEXT', None) self.gcode.register_command( 'NEXT', self.cmd_NEXT, desc=self.cmd_NEXT_help) self.results = []