cartesian: Use new GCodeCommand wrappers

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
Kevin O'Connor 2020-04-24 21:20:06 -04:00
parent ec0e3e710c
commit 6869611147
1 changed files with 2 additions and 2 deletions

View File

@ -135,9 +135,9 @@ class CartKinematics:
if self.limits[dc_axis][0] <= self.limits[dc_axis][1]: if self.limits[dc_axis][0] <= self.limits[dc_axis][1]:
self.limits[dc_axis] = dc_rail.get_range() self.limits[dc_axis] = dc_rail.get_range()
cmd_SET_DUAL_CARRIAGE_help = "Set which carriage is active" 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') 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) self._activate_carriage(carriage)
gcode.reset_last_position() gcode.reset_last_position()