summaryrefslogtreecommitdiff
path: root/ebus/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'ebus/__init__.py')
-rw-r--r--ebus/__init__.py2
1 files changed, 1 insertions, 1 deletions
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))