Handle N... gcodes in GCoder

master
Guillaume Seguin 2013-05-16 19:16:13 +02:00
parent 9a19e12777
commit 975b45936d
2 changed files with 1 additions and 5 deletions

View File

@ -47,7 +47,7 @@ class Line(object):
if ";" in self.raw:
self.raw = self.raw.split(";")[0].rstrip()
self.split_raw = self.raw.split(" ")
self.command = self.split_raw[0].upper()
self.command = self.split_raw[0].upper() if not self.split_raw[0].startswith("n") else self.split_raw[1]
self.is_move = self.command in ["G0", "G1"]
def parse_coordinates(self, imperial):

View File

@ -371,10 +371,6 @@ class gviz(wx.Panel):
return
gline = gcoder.Line(gcode)
gline.parse_coordinates(False)
# FIXME by iXce : I commented this code out as I have no clue what it does,
# but it should be looked at
#if gcode[0][0] == 'n': # not sure what this check is for ?
# gcode.pop(0)
def _y(y):
return self.build_dimensions[1] - (y - self.build_dimensions[4])