bed_mesh: update z_offset check

Only check the probe's z_offset against the stepper_z endstop position if the probe is used as a virtual endstop.

Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
Arksine
2018-08-17 12:08:37 -04:00
committed by KevinOConnor
parent 08aacec0b2
commit 52df40dfbb
2 changed files with 14 additions and 5 deletions

View File

@@ -171,6 +171,11 @@ class ProbePointsHelper:
self.gcode = self.toolhead = None
def get_lift_speed(self):
return self.lift_speed
def get_last_xy_home_positon(self):
if self.probe is not None:
return self.probe.last_home_position()
else:
return None
def start_probe(self):
# Begin probing
self.toolhead = self.printer.lookup_object('toolhead')