From 2a4eb7c401affa27dedd55697c4f8c289c92f465 Mon Sep 17 00:00:00 2001 From: CurtisHx Date: Fri, 3 Feb 2023 16:12:01 -0500 Subject: [PATCH] Changed Reset Strategy for `set_reset_strategy` to `open_required` (#163) 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. --- pylink/jlink.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pylink/jlink.py b/pylink/jlink.py index d8c9e86..ee1b8fc 100644 --- a/pylink/jlink.py +++ b/pylink/jlink.py @@ -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.