tools/remote/comm_udp: keep up to date with new encoding/decoding.
This commit is contained in:
parent
c003293b31
commit
fa9149720f
|
@ -40,7 +40,7 @@ class CommUDP:
|
||||||
packet.records = [record]
|
packet.records = [record]
|
||||||
packet.encode()
|
packet.encode()
|
||||||
|
|
||||||
self.socket.sendto(bytes(packet), (self.server, self.port))
|
self.socket.sendto(packet.bytes, (self.server, self.port))
|
||||||
|
|
||||||
datas, dummy = self.socket.recvfrom(8192)
|
datas, dummy = self.socket.recvfrom(8192)
|
||||||
packet = EtherbonePacket(datas)
|
packet = EtherbonePacket(datas)
|
||||||
|
@ -62,7 +62,7 @@ class CommUDP:
|
||||||
packet.records = [record]
|
packet.records = [record]
|
||||||
packet.encode()
|
packet.encode()
|
||||||
|
|
||||||
self.socket.sendto(bytes(packet), (self.server, self.port))
|
self.socket.sendto(packet.bytes, (self.server, self.port))
|
||||||
|
|
||||||
if self.debug:
|
if self.debug:
|
||||||
for i, value in enumerate(datas):
|
for i, value in enumerate(datas):
|
||||||
|
|
Loading…
Reference in New Issue