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