diff options
author | marc <marc@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2010-03-31 20:56:12 +0000 |
---|---|---|
committer | marc <marc@d0e8fea9-7529-0410-93fb-d39fd5b9c1dd> | 2010-03-31 20:56:12 +0000 |
commit | 8d9498482bae4d76ad10695e7278670aae4a55a6 (patch) | |
tree | d0c378a6cd8c13c04f0c23e7a427a005d2556fb3 /ebus/__init__.py | |
parent | 23872fc97a38e44d59810a88b88953aac21e09b0 (diff) | |
download | ebus-alt-8d9498482bae4d76ad10695e7278670aae4a55a6.tar.gz ebus-alt-8d9498482bae4d76ad10695e7278670aae4a55a6.zip |
debug bereinigt
git-svn-id: http://10.2.2.13/svn/common/ebus@1620 d0e8fea9-7529-0410-93fb-d39fd5b9c1dd
Diffstat (limited to 'ebus/__init__.py')
-rw-r--r-- | ebus/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ebus/__init__.py b/ebus/__init__.py index e5af594..8a670eb 100644 --- a/ebus/__init__.py +++ b/ebus/__init__.py @@ -324,8 +324,7 @@ class EbusReader(asynchat.async_chat): payloadLength = ord(data[4]) 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)) + 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" % (source,destination,primaryCommand,secondaryCommand,payloadLength,formatHex(payload)) p = None if sourceDevice[0]['type'] == 'master' and destinationDevice[0]['type'] == 'master': |