From dcdacd68c092e51a033e14e04ca21484b300c898 Mon Sep 17 00:00:00 2001 From: Peter Boin Date: Tue, 18 Jul 2017 14:43:49 +1000 Subject: [PATCH] derps --- pygcode/gcodes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygcode/gcodes.py b/pygcode/gcodes.py index a11cc19..4d342ba 100644 --- a/pygcode/gcodes.py +++ b/pygcode/gcodes.py @@ -475,13 +475,13 @@ class GCodeCannedCycle(GCode): def _process(self, machine): moveto_coords = self.get_param_dict(letters=machine.axes) - if isinstance(machine.mode., GCodeCannedCycleReturnToR): + if isinstance(machine.mode.canned_cycles_return, GCodeCannedCycleReturnToR): # canned return is to this.R, not this.Z (plane dependent) moveto_coords.update({ machine.mode.plane_selection.normal_axis: this.R, }) - machine.mode_to(**moveto_coords) + machine.move_to(**moveto_coords) class GCodeDrillingCycle(GCodeCannedCycle):