mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-08-05 21:14:05 -06:00
manual_probe: Add extra checks to catch manual probe not finishing correctly
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
40f73dd7f4
commit
49a3083d6a
2 changed files with 15 additions and 8 deletions
|
@ -175,6 +175,7 @@ class PrinterProbe:
|
|||
configfile.set(self.name, 'z_offset', "%.3f" % (z_offset,))
|
||||
cmd_PROBE_CALIBRATE_help = "Calibrate the probe's z_offset"
|
||||
def cmd_PROBE_CALIBRATE(self, params):
|
||||
manual_probe.verify_no_manual_probe(self.printer)
|
||||
# Perform initial probe
|
||||
curpos = self.run_probe()
|
||||
# Move away from the bed
|
||||
|
@ -292,6 +293,7 @@ class ProbePointsHelper:
|
|||
self.gcode.reset_last_position()
|
||||
return False
|
||||
def start_probe(self, params):
|
||||
manual_probe.verify_no_manual_probe(self.printer)
|
||||
# Lookup objects
|
||||
probe = self.printer.lookup_object('probe', None)
|
||||
method = self.gcode.get_str('METHOD', params, 'automatic').lower()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue