From fa9149720f3a25b3c3de9893b3e9442c09c2a53f Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 25 Nov 2020 11:33:34 +0100 Subject: [PATCH] tools/remote/comm_udp: keep up to date with new encoding/decoding. --- litex/tools/remote/comm_udp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/litex/tools/remote/comm_udp.py b/litex/tools/remote/comm_udp.py index ee62d503d..79ed27b5d 100644 --- a/litex/tools/remote/comm_udp.py +++ b/litex/tools/remote/comm_udp.py @@ -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):