Skip to content

Commit 37a36ae

Browse files
committed
in progress commit on gcodes and machine
- trying to get G80 to drop back into G0 or previous mvmt
1 parent cc75fc9 commit 37a36ae

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/pygcode/gcodes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

src/pygcode/machine.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import re
22
from copy import copy, deepcopy
33
from collections import defaultdict
4+
import logging
5+
6+
log = logging.getLogger(__name__)
47

58
from .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
"""

0 commit comments

Comments
 (0)