From 36832739369ab2f66beb1bad732523b5c3687ff7 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 24 Nov 2019 19:16:21 -0500 Subject: toolhead: Report which axes are homed via get_status() Signed-off-by: Kevin O'Connor --- klippy/extras/safe_z_home.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'klippy/extras/safe_z_home.py') diff --git a/klippy/extras/safe_z_home.py b/klippy/extras/safe_z_home.py index a392535b..a49f6b9a 100644 --- a/klippy/extras/safe_z_home.py +++ b/klippy/extras/safe_z_home.py @@ -30,14 +30,14 @@ class SafeZHoming: def cmd_G28(self, params): toolhead = self.printer.lookup_object('toolhead') - kinematics = toolhead.get_kinematics() # Perform Z Hop if necessary if self.z_hop != 0.0: pos = toolhead.get_position() - kin_status = kinematics.get_status() + curtime = self.printer.get_reactor().monotonic() + kin_status = toolhead.get_kinematics().get_status(curtime) # Check if Z axis is homed or has a known position - if 'Z' in kin_status['homed_axes']: + if 'z' in kin_status['homed_axes']: # Check if the zhop would exceed the printer limits if pos[2] + self.z_hop > self.max_z: self.gcode.respond_info( -- cgit v1.2.3-70-g09d2