remote/comm_udp: Add padding bytes to Etherbone probe.

Now required with LiteEth dropping exceeding payload.
This commit is contained in:
Florent Kermarrec 2021-09-22 16:52:08 +02:00
parent 027f7aa645
commit 60c6077c32
1 changed files with 1 additions and 0 deletions

View File

@ -42,6 +42,7 @@ class CommUDP(CSRBuilder):
packet = EtherbonePacket()
packet.pf = 1
packet.encode()
packet.bytes += bytes([0x00, 0x00, 0x00, 0x00]) # Add Padding as payload.
self.socket.sendto(packet.bytes, (ip, port))
# ...and get/check server's response.