tools/remote/comm_udp: keep up to date with new encoding/decoding.

This commit is contained in:
Florent Kermarrec 2020-11-25 11:33:34 +01:00
parent c003293b31
commit fa9149720f
1 changed files with 2 additions and 2 deletions

View File

@ -40,7 +40,7 @@ class CommUDP:
packet.records = [record]
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)
packet = EtherbonePacket(datas)
@ -62,7 +62,7 @@ class CommUDP:
packet.records = [record]
packet.encode()
self.socket.sendto(bytes(packet), (self.server, self.port))
self.socket.sendto(packet.bytes, (self.server, self.port))
if self.debug:
for i, value in enumerate(datas):