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