diff --git a/tuhi/protocol.py b/tuhi/protocol.py index be9f120..b5c3c8e 100644 --- a/tuhi/protocol.py +++ b/tuhi/protocol.py @@ -1762,7 +1762,7 @@ class StrokeHeader(StrokePacket): if header != 0xbf: self.size += 2 - else if header != 0xff: + elif header != 0xff: raise StrokeParsingError(f'Unexpected pen id packet header: {header}.', data[:9]) nbytes = bin(header).count('1')