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/kinematics/cartesian.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'klippy/kinematics/cartesian.py') diff --git a/klippy/kinematics/cartesian.py b/klippy/kinematics/cartesian.py index ee65d4ba..c44ad857 100644 --- a/klippy/kinematics/cartesian.py +++ b/klippy/kinematics/cartesian.py @@ -116,10 +116,9 @@ class CartKinematics: 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) } # Dual carriage support def _activate_carriage(self, carriage): toolhead = self.printer.lookup_object('toolhead') -- cgit v1.2.3-70-g09d2