From 214aeb0dd8bf2f979569a5070be09d2aa4653b81 Mon Sep 17 00:00:00 2001 From: yvesf Date: Sun, 17 Jul 2011 15:14:17 +0200 Subject: ebus escaping korrigiert --- ebus/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ebus/__init__.py') 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: -- cgit v1.2.1