Skip to content

Commit

Permalink
Support D-codes kliment#1119
Browse files Browse the repository at this point in the history
G-codes are G0, G1. D-codes are D100, etc.
  • Loading branch information
volconst committed Oct 12, 2020
1 parent 3d72c9a commit 0d1c7f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions printrun/gcoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
from array import array

gcode_parsed_args = ["x", "y", "e", "f", "z", "i", "j"]
gcode_parsed_nonargs = ["g", "t", "m", "n"]
to_parse = "".join(gcode_parsed_args + gcode_parsed_nonargs)
gcode_parsed_nonargs = 'gtmnd'
to_parse = "".join(gcode_parsed_args) + gcode_parsed_nonargs
gcode_exp = re.compile("\([^\(\)]*\)|;.*|[/\*].*\n|([%s])\s*([-+]?[0-9]*\.?[0-9]*)" % to_parse)
gcode_strip_comment_exp = re.compile("\([^\(\)]*\)|;.*|[/\*].*\n")
m114_exp = re.compile("\([^\(\)]*\)|[/\*].*\n|([XYZ]):?([-+]?[0-9]*\.?[0-9]*)")
Expand Down

0 comments on commit 0d1c7f4

Please sign in to comment.