summaryrefslogtreecommitdiff
path: root/ebus
diff options
context:
space:
mode:
authoryvesf <yvesf-git@xapek.org>2011-07-17 15:14:17 +0200
committeryvesf <yvesf-git@xapek.org>2011-07-17 15:14:17 +0200
commit214aeb0dd8bf2f979569a5070be09d2aa4653b81 (patch)
tree371cd528f1464a64911899d322a8ae1416798aee /ebus
parent647288db34eaedb9f1bb126d6714305d0ac50e67 (diff)
downloadebus-alt-214aeb0dd8bf2f979569a5070be09d2aa4653b81.tar.gz
ebus-alt-214aeb0dd8bf2f979569a5070be09d2aa4653b81.zip
ebus escaping korrigiert
Diffstat (limited to 'ebus')
-rw-r--r--ebus/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ebus/__init__.py b/ebus/__init__.py
index a435e76..8d4e6ac 100644
--- a/ebus/__init__.py
+++ b/ebus/__init__.py
@@ -115,7 +115,7 @@ class EbusReader(asynchat.async_chat):
i = 0
data = ""
while (i+1) < len(dataRaw):
- if ord(dataRaw[i]) == 0xaa and ord(dataRaw[i+1]) == 0x01:
+ if ord(dataRaw[i]) == 0xa9 and ord(dataRaw[i+1]) == 0x01:
data += "\xaa"
i = i + 1
elif ord(dataRaw[i]) == 0xa9 and ord(dataRaw[i+1]) == 0x00: