diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2019-11-24 19:16:21 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2019-11-24 20:21:13 -0500 |
commit | 36832739369ab2f66beb1bad732523b5c3687ff7 (patch) | |
tree | f98e7c34c8da7c55590e451fff95c83f540c4123 /klippy/extras/safe_z_home.py | |
parent | 282af0220e2622fbba304f66f001f442b9f3ca8d (diff) | |
download | kutter-36832739369ab2f66beb1bad732523b5c3687ff7.tar.gz kutter-36832739369ab2f66beb1bad732523b5c3687ff7.tar.xz kutter-36832739369ab2f66beb1bad732523b5c3687ff7.zip |
toolhead: Report which axes are homed via get_status()
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'klippy/extras/safe_z_home.py')
-rw-r--r-- | klippy/extras/safe_z_home.py | 6 |
1 files changed, 3 insertions, 3 deletions
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( |