Commit 975b4593 authored by Guillaume Seguin's avatar Guillaume Seguin

Handle N... gcodes in GCoder

parent 9a19e127
...@@ -47,7 +47,7 @@ class Line(object): ...@@ -47,7 +47,7 @@ class Line(object):
if ";" in self.raw: if ";" in self.raw:
self.raw = self.raw.split(";")[0].rstrip() self.raw = self.raw.split(";")[0].rstrip()
self.split_raw = self.raw.split(" ") 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"] self.is_move = self.command in ["G0", "G1"]
def parse_coordinates(self, imperial): def parse_coordinates(self, imperial):
......
...@@ -371,10 +371,6 @@ class gviz(wx.Panel): ...@@ -371,10 +371,6 @@ class gviz(wx.Panel):
return return
gline = gcoder.Line(gcode) gline = gcoder.Line(gcode)
gline.parse_coordinates(False) 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): def _y(y):
return self.build_dimensions[1] - (y - self.build_dimensions[4]) return self.build_dimensions[1] - (y - self.build_dimensions[4])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment