inverted if statement

pull/283/head
Roland Metivier 2022-01-15 09:05:49 -06:00
parent 1d9d91bb82
commit cfb179c661
No known key found for this signature in database
GPG Key ID: 54E5710EE1759A5B
1 changed files with 1 additions and 1 deletions

View File

@ -1760,7 +1760,7 @@ class StrokeHeader(StrokePacket):
header = data[0]
if header != 0xbf:
if header == 0xbf:
self.size += 2
elif header != 0xff:
raise StrokeParsingError(f'Unexpected pen id packet header: {header}.', data[:9])