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):