Commit 72c68030 authored by kliment's avatar kliment

Do not choke on comments in gviz

parent 4d1917fc
...@@ -139,6 +139,7 @@ class gviz(wx.Panel): ...@@ -139,6 +139,7 @@ class gviz(wx.Panel):
def addgcode(self,gcode="M105",hilight=0): def addgcode(self,gcode="M105",hilight=0):
gcode=gcode.split("*")[0] gcode=gcode.split("*")[0]
gcode=gcode.split(";")[0]
if "g1" in gcode.lower(): if "g1" in gcode.lower():
gcode=gcode.lower().split() gcode=gcode.lower().split()
target=self.lastpos[:] target=self.lastpos[:]
......
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