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 <johan.carlsson@teenage.engineering>
Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
This commit is contained in:
Johan Carlsson 2023-04-23 23:35:33 +02:00 committed by Alberto Escolar
parent e46e72320e
commit f5ccc3c82c

View file

@ -153,7 +153,6 @@ static uint16_t dap_connect(struct dap_context *const ctx,
if (atomic_test_and_set_bit(&ctx->state,
DAP_STATE_CONNECTED)) {
LOG_ERR("DAP device is already connected");
port = DAP_ERROR;
break;
}