Skip to content

Commit f5ccc3c

Browse files
Johan Carlssonaescolar
authored andcommitted
dap: do not return error in DAP connect command
If a host client crashes or fails to disconnect, the probe will hang. Allow a new connection without raising errors. Signed-off-by: Johan Carlsson <[email protected]> Signed-off-by: Johann Fischer <[email protected]>
1 parent e46e723 commit f5ccc3c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

subsys/dap/cmsis_dap.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ static uint16_t dap_connect(struct dap_context *const ctx,
153153
if (atomic_test_and_set_bit(&ctx->state,
154154
DAP_STATE_CONNECTED)) {
155155
LOG_ERR("DAP device is already connected");
156-
port = DAP_ERROR;
157156
break;
158157
}
159158

0 commit comments

Comments
 (0)