From aa8ba30f8a8453c739a009870752fb645ed4c27b Mon Sep 17 00:00:00 2001 From: D4SK <42315676+D4SK@users.noreply.github.com> Date: Sat, 12 Aug 2023 03:21:46 +0200 Subject: [PATCH] cartesian: fix x-axis being hardcoded for dual_carriage (#6313) Signed-off-by: Konstantin Vogel --- klippy/kinematics/cartesian.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/klippy/kinematics/cartesian.py b/klippy/kinematics/cartesian.py index 59604197..6d576b5b 100644 --- a/klippy/kinematics/cartesian.py +++ b/klippy/kinematics/cartesian.py @@ -30,7 +30,8 @@ class CartKinematics: self.rails[3].setup_itersolve('cartesian_stepper_alloc', dc_axis.encode()) dc_rail_0 = idex_modes.DualCarriagesRail( - self.rails[0], axis=self.dual_carriage_axis, active=True) + self.rails[self.dual_carriage_axis], + axis=self.dual_carriage_axis, active=True) dc_rail_1 = idex_modes.DualCarriagesRail( self.rails[3], axis=self.dual_carriage_axis, active=False) self.dc_module = idex_modes.DualCarriages(