Closedown
This commit is contained in:
@@ -156,10 +156,10 @@ class Interlock:
|
||||
import binascii
|
||||
udp = UDPDatagram()
|
||||
msg = self._msgWrite()
|
||||
print binascii.hexlify(msg)
|
||||
print 'setInterlockMode', binascii.hexlify(msg)
|
||||
modebytes = array('B', mode)
|
||||
msg.extend(modebytes)
|
||||
print binascii.hexlify(msg)
|
||||
print 'setInterlockMode', binascii.hexlify(msg)
|
||||
if udp.send(msg) == null:
|
||||
return false
|
||||
else:
|
||||
@@ -169,16 +169,16 @@ class Interlock:
|
||||
import binascii
|
||||
udp = UDPDatagram()
|
||||
msg = self._msgRead()
|
||||
print binascii.hexlify(msg)
|
||||
print 'getInterlockMode', binascii.hexlify(msg)
|
||||
rcv = udp.send(msg)
|
||||
print binascii.hexlify(rcv)
|
||||
print 'getInterlockMode', binascii.hexlify(rcv)
|
||||
return rcv
|
||||
|
||||
def masterReset(self):
|
||||
import binascii
|
||||
udp = UDPDatagram()
|
||||
msg = self._msgReset()
|
||||
print binascii.hexlify(msg)
|
||||
print 'masterReset', binascii.hexlify(msg)
|
||||
if udp.send(msg) == null:
|
||||
return false
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user