try again, incorrect fix

pull/283/head
Roland Metivier 2022-01-15 07:24:42 -06:00
parent 1511caa9f4
commit 7d94675f67
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 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')