probe: Allow restarting an incomplete probe set

Signed-off-by: Romain “Artefact2” Dal Maso <artefact2@gmail.com>
This commit is contained in:
Romain “Artefact2” Dal Maso 2018-08-20 17:51:34 +02:00 committed by Kevin O'Connor
parent b065f51454
commit 11e9bb286e
1 changed files with 3 additions and 0 deletions

View File

@ -184,6 +184,9 @@ class ProbePointsHelper:
# Begin probing # Begin probing
self.toolhead = self.printer.lookup_object('toolhead') self.toolhead = self.printer.lookup_object('toolhead')
self.gcode = self.printer.lookup_object('gcode') 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( self.gcode.register_command(
'NEXT', self.cmd_NEXT, desc=self.cmd_NEXT_help) 'NEXT', self.cmd_NEXT, desc=self.cmd_NEXT_help)
self.results = [] self.results = []