cartesian: Use new GCodeCommand wrappers
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
ec0e3e710c
commit
6869611147
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue