diff --git a/klippy/kinematics/cartesian.py b/klippy/kinematics/cartesian.py index 9cbd393d..df57edce 100644 --- a/klippy/kinematics/cartesian.py +++ b/klippy/kinematics/cartesian.py @@ -135,9 +135,9 @@ class CartKinematics: if self.limits[dc_axis][0] <= self.limits[dc_axis][1]: self.limits[dc_axis] = dc_rail.get_range() cmd_SET_DUAL_CARRIAGE_help = "Set which carriage is active" - def cmd_SET_DUAL_CARRIAGE(self, params): + def cmd_SET_DUAL_CARRIAGE(self, gcmd): gcode = self.printer.lookup_object('gcode') - carriage = gcode.get_int('CARRIAGE', params, minval=0, maxval=1) + carriage = gcmd.get_int('CARRIAGE', minval=0, maxval=1) self._activate_carriage(carriage) gcode.reset_last_position()