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(): ...@@ -226,6 +226,7 @@ class printcore():
pass pass
while(self.printing and self.printer and self.online): while(self.printing and self.printer and self.online):
self._sendnext() self._sendnext()
self.sentlines={}
self.log=[] self.log=[]
self.sent=[] self.sent=[]
if self.endcb is not None: if self.endcb is not None:
...@@ -248,7 +249,6 @@ class printcore(): ...@@ -248,7 +249,6 @@ class printcore():
self._send(self.sentlines[self.resendfrom],self.resendfrom,False) self._send(self.sentlines[self.resendfrom],self.resendfrom,False)
self.resendfrom+=1 self.resendfrom+=1
return return
self.sentlines={}
self.resendfrom=-1 self.resendfrom=-1
for i in self.priqueue[:]: for i in self.priqueue[:]:
self._send(i) 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