From 4b8b1c3d7485973c7ffe7a688445baa0080f5167 Mon Sep 17 00:00:00 2001 From: yvesf Date: Sat, 10 Apr 2010 10:42:34 +0000 Subject: bla git-svn-id: http://10.2.2.13/svn/common/ebus@1638 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- ebus/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ebus') 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: -- cgit v1.2.1