Commit 1307f980 authored by Kliment's avatar Kliment

Fix crash caused by serial error with fiveD firmware on resend request.

parent 291aac90
......@@ -115,7 +115,11 @@ class printcore():
#callback for errors
pass
if "resend" in line.lower() or "rs" in line:
try:
toresend=int(line.replace("N:"," ").replace("N"," ").replace(":"," ").split()[-1])
except:
if "rs" in line:
toresend=int(line.split()[1])
self.resendfrom=toresend
self.clear=True
self.clear=True
......
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