try fix packet header 191/0xBF

pull/283/head
Roland Metivier 2022-01-15 07:19:44 -06:00
parent f05fc2d80f
commit 1511caa9f4
No known key found for this signature in database
GPG Key ID: 54E5710EE1759A5B
1 changed files with 1 additions and 1 deletions

View File

@ -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')