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/kinematics/corexy.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/kinematics/corexy.py')
-rw-r--r-- | klippy/kinematics/corexy.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/klippy/kinematics/corexy.py b/klippy/kinematics/corexy.py index aa88406d..98c66dd5 100644 --- a/klippy/kinematics/corexy.py +++ b/klippy/kinematics/corexy.py @@ -93,10 +93,9 @@ class CoreXYKinematics: z_ratio = move.move_d / abs(move.axes_d[2]) move.limit_speed( self.max_z_velocity * z_ratio, self.max_z_accel * z_ratio) - def get_status(self): - return {'homed_axes': "".join([a - for a, (l, h) in zip("XYZ", self.limits) if l <= h]) - } + def get_status(self, eventtime): + axes = [a for a, (l, h) in zip("xyz", self.limits) if l <= h] + return {'homed_axes': "".join(axes)} def load_kinematics(toolhead, config): return CoreXYKinematics(toolhead, config) |