Commit 720eae92 authored by Guillaume Seguin's avatar Guillaume Seguin

Dont strip comments before parsing gcode (plus this stripping was buggy)

parent fb684a36
......@@ -67,7 +67,6 @@ class GCodeAnalyzer():
self.hasHomeZ = False
def Analyze(self, gcode):
gcode = gcode[:gcode.find(";")].lstrip() # remove comments
gline = gcoder.Line(gcode)
if gline.command.startswith(";@"): return # code is a host command
if gline.command.startswith("G"):
......
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