Don't parse gcodes other than G* (attempt to harden against #303)

master
Guillaume Seguin 2013-05-16 20:32:50 +02:00
parent d2a0163a4e
commit df00b7e2a1
1 changed files with 3 additions and 0 deletions

View File

@ -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]