Accept alternative resend format

master
kliment 2011-06-09 16:23:05 +02:00
parent 124aef586f
commit b513383d04
1 changed files with 2 additions and 2 deletions

View File

@ -100,8 +100,8 @@ class printcore():
self.errorcb(line)
#callback for errors
pass
if "Resend" in line or "rs" in line:
toresend=int(line.replace("N:"," ").replace("N"," ").split()[-1])
if "resend" in line.lower() or "rs" in line:
toresend=int(line.replace("N:"," ").replace("N"," ").replace(":"," ").split()[-1])
self.resendfrom=toresend
self.clear=True
self.clear=True