Skip to content

Commit

Permalink
Changed Reset Strategy for set_reset_strategy to open_required (#163
Browse files Browse the repository at this point in the history
)

Where a micro allows the reset pin to be re-assigned, the reset strategy may
need to be changed prior to establishing a connection. This patch changes the
decorator on the `set_reset_strategy()` method to `open_required()` from
`connection_required()` to allow that to be possible.
  • Loading branch information
CurtisHx committed Feb 3, 2023
1 parent e3c9d33 commit 2a4eb7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pylink/jlink.py
Expand Up @@ -1961,7 +1961,7 @@ def set_etm_trace(self):
"""
return self.set_trace_source(enums.JLinkTraceSource.ETM)

@connection_required
@open_required
def set_reset_strategy(self, strategy):
"""Sets the reset strategy for the target.
Expand Down

0 comments on commit 2a4eb7c

Please sign in to comment.