From a9c2cb96eb811068b25fa50317c51204963665ab Mon Sep 17 00:00:00 2001 From: James Turton Date: Wed, 31 Aug 2022 23:31:11 +0200 Subject: [PATCH] target/adiv5: Resume targets that have been halted Some targets have been halted while probing them, but the should be resumed before we leave. --- src/target/adiv5.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/target/adiv5.c b/src/target/adiv5.c index ebdebfc..cdbd1fa 100644 --- a/src/target/adiv5.c +++ b/src/target/adiv5.c @@ -846,8 +846,7 @@ void adiv5_dp_init(ADIv5_DP_t *dp, const uint32_t idcode) dp->ap_cleanup(i); #endif if (++invalid_aps == 8) { - adiv5_dp_unref(dp); - return; + break; } continue; }