Don't parse gcodes other than G* (attempt to harden against #303)
parent
d2a0163a4e
commit
df00b7e2a1
|
@ -51,6 +51,9 @@ class Line(object):
|
|||
self.is_move = self.command in ["G0", "G1"]
|
||||
|
||||
def parse_coordinates(self, imperial):
|
||||
# Not a G-line, we don't want to parse its arguments
|
||||
if not self.command[0] == "G":
|
||||
return
|
||||
if imperial:
|
||||
for bit in self.split_raw:
|
||||
code = bit[0]
|
||||
|
|
Loading…
Reference in New Issue