Skip to content

Commit

Permalink
fix mock method after merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Oct 16, 2023
1 parent a965fb3 commit 5596258
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ def __init__(self):
self._regions_rewritten = list()

@overrides(MockableTransceiver.write_memory)
def write_memory(self, x, y, base_address, data, n_bytes=None, offset=0,
cpu=0, is_filename=False, get_sum=False):
def write_memory(self, x, y, base_address, data, *,
n_bytes=None, offset=0, cpu=0, get_sum=False):
self._regions_rewritten.append((base_address, data))


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ def malloc_sdram(self, x, y, size, app_id, tag=None):
return address

@overrides(Version5Transceiver.write_memory)
def write_memory(self, x, y, base_address, data, n_bytes=None, offset=0,
cpu=0, is_filename=False, get_sum=False):
def write_memory(self, x, y, base_address, data, *,
n_bytes=None, offset=0, cpu=0, get_sum=False):
if isinstance(data, int):
data = struct.pack("<I", data)
self._regions_written.append((base_address, data))
Expand Down

0 comments on commit 5596258

Please sign in to comment.