Skip to content

Commit dc63340

Browse files
committed
fix(cocotbext - eth monitors): pass bytes instead of list[int] to callbacks
The drivers are using bytes object for sending packet: unify for better "loopback" usage.
1 parent 0705fb0 commit dc63340

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/cocotbext/cocotbext/ofm/avst_eth/monitors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ async def _monitor_recv(self):
3737
packet += data
3838

3939
if self.bus.eop.value:
40-
self._recv(packet)
40+
self._recv(bytes(packet))
4141
packet = None

python/cocotbext/cocotbext/ofm/lbus/monitors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@ async def _monitor_recv(self):
3636
packet += data
3737

3838
if self.bus.eop.value.integer & (1 << i):
39-
self._recv(packet)
39+
self._recv(bytes(packet))
4040
packet = None

0 commit comments

Comments
 (0)