From 23872fc97a38e44d59810a88b88953aac21e09b0 Mon Sep 17 00:00:00 2001 From: marc Date: Mon, 29 Mar 2010 19:58:09 +0000 Subject: refresh git-svn-id: http://10.2.2.13/svn/common/ebus@1616 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd --- dist/ebus-0.2-py2.5.egg | Bin 8227 -> 9955 bytes ebus/__init__.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/ebus-0.2-py2.5.egg b/dist/ebus-0.2-py2.5.egg index 63184b9..4344e42 100644 Binary files a/dist/ebus-0.2-py2.5.egg and b/dist/ebus-0.2-py2.5.egg differ diff --git a/ebus/__init__.py b/ebus/__init__.py index 2e4ef21..e5af594 100644 --- a/ebus/__init__.py +++ b/ebus/__init__.py @@ -322,7 +322,7 @@ class EbusReader(asynchat.async_chat): primaryCommand = ord(data[2]) secondaryCommand = ord(data[3]) payloadLength = ord(data[4]) - payload = data[5:5+payloadLength] + payload = data[5:5+payloadLength] ### DEBUG ### print "\033[1;31m%.2x %.2x\033[1;m \033[1;33m%.2x %.2x\033[1;m \033[1;30m%.2x\033[1;m \033[1;45m%s\033[1;m %d" % (source,destination,primaryCommand,secondaryCommand,payloadLength,formatHex(payload),len(payload)) print "%s"%(formatHex(data)) -- cgit v1.2.1