Skip to content

Commit

Permalink
Fix bug, use the correct type as key in the memory dict
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Ruiz committed Dec 3, 2021
1 parent 1d6dad1 commit 207d9b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/mock_device.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def write_register(self, address, data):
self.memory[str(address)] = data

def read_register(self, address):
return self.memory.get(address)
return self.memory.get(str(address))


class MockRegisterIP(MockIPBase):
Expand Down

0 comments on commit 207d9b0

Please sign in to comment.