File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -522,7 +522,7 @@ class GCodeCancelCannedCycle(GCodeMotion):
522522 modal_group = None
523523 exec_order = 241
524524
525- def _process (self , machine ):
525+ def WRONG_process (self , machine ):
526526 machine .mode .motion = None
527527
528528
Original file line number Diff line number Diff line change 11import re
22from copy import copy , deepcopy
33from collections import defaultdict
4+ import logging
5+
6+ log = logging .getLogger (__name__ )
47
58from .gcodes import (
69 MODAL_GROUP_MAP , GCode ,
@@ -407,6 +410,10 @@ def set_mode(self, *gcode_list):
407410 self .state .cur_coord_sys = coord_sys_mode .coord_system_id
408411
409412 # TODO: convert coord systems between inches/mm, G20/G21 respectively
413+ # NOTE : on at least a Haas -- this cannot be changed when running a
414+ # program -- the G20 / G21 codes don't actually change units, but if
415+ # a G20 / G21 appears in the code and the machine settings do not match
416+ # an error will be thrown.
410417
411418 def modal_gcode (self , modal_params ):
412419 """
You can’t perform that action at this time.
0 commit comments