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:
parent
e46e72320e
commit
f5ccc3c82c
1 changed files with 0 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue