Skip to content

Commit

Permalink
fix(client.command.cryo_card): Raise exception if read fails.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristpinsm committed May 20, 2024
1 parent 2697cfd commit 8323bbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/pysmurf/client/command/cryo_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def do_read(self, address, use_monitor=False):
self.log(
f"CryoCard.do_read failed, retry {self.retry + 1} / {self.max_retries}."
)
return (0)

raise Exception(f"Failed to read address 0x{address:X} after {self.max_retries} attempts.")

def do_write(self, address, value):
"""Write the given value directly to the address on the PIC. Make sure
Expand Down

0 comments on commit 8323bbc

Please sign in to comment.