mirror of https://github.com/tuhiproject/tuhi.git
try fix packet header 191/0xBF
parent
f05fc2d80f
commit
1511caa9f4
|
@ -1759,7 +1759,7 @@ class StrokeHeader(StrokePacket):
|
|||
raise StrokeParsingError('Missing pen ID packet')
|
||||
|
||||
header = data[0]
|
||||
if header != 0xff:
|
||||
if header != 0xff or header != 0xfa:
|
||||
raise StrokeParsingError(f'Unexpected pen id packet header: {header}.', data[:9])
|
||||
|
||||
nbytes = bin(header).count('1')
|
||||
|
|
Loading…
Reference in New Issue