diff options
Diffstat (limited to 'ebus')
-rw-r--r-- | ebus/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ebus/__init__.py b/ebus/__init__.py index 8b75043..94b0b32 100644 --- a/ebus/__init__.py +++ b/ebus/__init__.py @@ -253,7 +253,7 @@ class EbusReader(asynchat.async_chat): #0xaa bug i = 0 data = "" - while i < len(dataRaw)+1: + while (i+1) < len(dataRaw): if ord(dataRaw[i]) == 0xaa and ord(dataRaw[i+1]) == 0x01: data += "\xaa" i = i + 1 |