probe: Verify horizontal_move_z not less than probe's z_offset

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2018-05-20 11:32:03 -04:00
parent c5bff88943
commit 6869e7d1ec
1 changed files with 3 additions and 0 deletions

View File

@ -162,6 +162,9 @@ class ProbePointsHelper:
self.probe = self.printer.lookup_object('probe')
self.lift_speed = min(self.speed, self.probe.speed)
self.probe_z_offset = self.probe.z_offset
if self.horizontal_move_z < self.probe_z_offset:
raise config.error("horizontal_move_z can't be less than probe's"
" z_offset in %s" % (config.get_name()))
# Internal probing state
self.results = []
self.busy = False