From: <ni...@us...> - 2010-11-01 11:06:45
|
Revision: 58 http://openautomation.svn.sourceforge.net/openautomation/?rev=58&view=rev Author: nilss1 Date: 2010-11-01 11:06:39 +0000 (Mon, 01 Nov 2010) Log Message: ----------- change unpack of msg to unsigned Integer Modified Paths: -------------- PyWireGate/trunk/owfs_connector/connection.py Modified: PyWireGate/trunk/owfs_connector/connection.py =================================================================== --- PyWireGate/trunk/owfs_connector/connection.py 2010-10-31 23:35:57 UTC (rev 57) +++ PyWireGate/trunk/owfs_connector/connection.py 2010-11-01 11:06:39 UTC (rev 58) @@ -229,7 +229,8 @@ if len(msg) is not 24: raise exInvalidMessage, msg - val = struct.unpack('iiiiii', msg) + val = struct.unpack('IIIIII', msg) + version = socket.ntohl(val[0]) payload_len = socket.ntohl(val[1]) ret_value = socket.ntohl(val[2]) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |