Skip to content

Commit

Permalink
Re-establish com interface after reset
Browse files Browse the repository at this point in the history
This commit fixes the re-init of the COM interface after a reset
was issued by the attack script.

Signed-off-by: Pascal Nasahl <[email protected]>
  • Loading branch information
nasahlpa committed Apr 22, 2024
1 parent d21f716 commit 9252d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def reset_target(self, com_reset: Optional[bool] = False):
"""Resets the target. """
self.target.reset_target()
if com_reset and self.target_cfg.protocol == "ujson":
self._init_communication()
self.com_interface = self._init_communication()

def write(self, data, cmd: Optional[str] = ""):
"""Write data to the target. """
Expand Down

0 comments on commit 9252d0c

Please sign in to comment.