safe_z_home: Support note_z_not_homed() in kinematics (#2500)

Signed-off-by: David Smith <davidosmith@gmail.com>
This commit is contained in:
David Smith 2020-03-01 23:00:41 -05:00 committed by GitHub
parent 7a3cbc1e23
commit c0f72a2c38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 0 deletions

View file

@ -48,6 +48,8 @@ class SafeZHoming:
self._perform_z_hop(pos)
else:
self._perform_z_hop(pos)
if hasattr(toolhead.get_kinematics(), "note_z_not_homed"):
toolhead.get_kinematics().note_z_not_homed()
# Determine which axes we need to home
if not any([axis in params.keys() for axis in ['X', 'Y', 'Z']]):