Fix crash caused by serial error with fiveD firmware on resend request.
parent
291aac90e5
commit
1307f9801b
|
@ -115,7 +115,11 @@ class printcore():
|
||||||
#callback for errors
|
#callback for errors
|
||||||
pass
|
pass
|
||||||
if "resend" in line.lower() or "rs" in line:
|
if "resend" in line.lower() or "rs" in line:
|
||||||
toresend=int(line.replace("N:"," ").replace("N"," ").replace(":"," ").split()[-1])
|
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.resendfrom=toresend
|
||||||
self.clear=True
|
self.clear=True
|
||||||
self.clear=True
|
self.clear=True
|
||||||
|
|
Loading…
Reference in New Issue