summaryrefslogtreecommitdiff
path: root/ebus/__init__.py
diff options
context:
space:
mode:
authoryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2010-04-10 10:42:34 +0000
committeryvesf <yvesf@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd>2010-04-10 10:42:34 +0000
commit4b8b1c3d7485973c7ffe7a688445baa0080f5167 (patch)
treec201f563383dafb49a3af1ca3e0554f311e7c06d /ebus/__init__.py
parentc9795926a52562aded424b00ea8ad6269c836fbd (diff)
downloadebus-alt-4b8b1c3d7485973c7ffe7a688445baa0080f5167.tar.gz
ebus-alt-4b8b1c3d7485973c7ffe7a688445baa0080f5167.zip
bla
git-svn-id: http://10.2.2.13/svn/common/ebus@1638 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'ebus/__init__.py')
-rw-r--r--ebus/__init__.py4
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: