Commit 8a29452a authored by Kliment Yanev's avatar Kliment Yanev

DO not clear sent lines dict after each ok - fix for firmware sending resend...

DO not clear sent lines dict after each ok - fix for firmware sending resend after ok triggering keyerror
parent 5f8415c7
......@@ -226,6 +226,7 @@ class printcore():
pass
while(self.printing and self.printer and self.online):
self._sendnext()
self.sentlines={}
self.log=[]
self.sent=[]
if self.endcb is not None:
......@@ -248,7 +249,6 @@ class printcore():
self._send(self.sentlines[self.resendfrom],self.resendfrom,False)
self.resendfrom+=1
return
self.sentlines={}
self.resendfrom=-1
for i in self.priqueue[:]:
self._send(i)
......
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