From 937da3578014a0dce0c44febf000c383c74d6965 Mon Sep 17 00:00:00 2001 From: Christian Tremblay Date: Fri, 31 Jul 2015 19:58:25 -0400 Subject: [PATCH] No need to struct.unpack as pdu.pduData is already hex in that specific context Signed-off-by: Christian Tremblay --- py34/bacpypes/bvllservice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py34/bacpypes/bvllservice.py b/py34/bacpypes/bvllservice.py index b81f4eb..7e93716 100755 --- a/py34/bacpypes/bvllservice.py +++ b/py34/bacpypes/bvllservice.py @@ -141,7 +141,7 @@ class UDPMultiplexer: return # extract the first octet - msg_type = struct.unpack('b', pdu.pduData[:1])[0] + msg_type = (pdu.pduData)[0] # check for the message type if msg_type == 0x01: