Commit e97d8df3 authored by kliment's avatar kliment

Correct mirroring of part in pronterface, strip comments from gcode before sending

parent 0b147a12
......@@ -97,7 +97,7 @@ class gviz(wx.Panel):
self.lines[target[2]]=[]
self.pens[target[2]]=[]
self.layers+=[target[2]]
self.lines[target[2]]+=[(self.lastpos[0],self.lastpos[1],target[0],target[1])]
self.lines[target[2]]+=[(self.lastpos[0],self.bedsize[1]-self.lastpos[1],target[0],self.bedsize[1]-target[1])]
self.pens[target[2]]+=[self.mainpen]
self.lastpos=target
......
......@@ -199,7 +199,8 @@ class printcore():
return
if(self.printing and self.queueindex<len(self.mainqueue)):
tline=self.mainqueue[self.queueindex]
if(not tline.startswith(';') and len(tline)>0):
tline=tline.split(";")[0]
if(len(tline)>0):
self._send(tline,self.lineno,True)
self.lineno+=1
else:
......
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