get sure decode doesnt break

This commit is contained in:
Chrys 2019-11-04 23:00:23 +01:00
parent f04d8584d9
commit d5ca736f7c

View File

@ -291,7 +291,7 @@ class driver(screenDriver):
bold = 0 bold = 0
ink = 7 ink = 7
paper = 0 paper = 0
ch = 32 ch = None
try: try:
(sh,) = unpack("=H", data) (sh,) = unpack("=H", data)
attr = (sh >> 8) & 0xFF attr = (sh >> 8) & 0xFF
@ -309,8 +309,11 @@ class driver(screenDriver):
bold = 1 bold = 1
#if (ink != 7) or (paper != 0): #if (ink != 7) or (paper != 0):
# print(ink,paper) # print(ink,paper)
if sh & self.hichar: try:
ch |= 0x100 if sh & self.hichar:
ch |= 0x100
except:
ch = None
except: except:
pass pass
try: try: