mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-07-31 15:17:54 +00:00
apps/bttester: do not fail pairing if it's already active
Sometimes it's simpler to call pair() even when procedure is already active. Do not fail command in this case, as it doesn't influence already ongoing procedure.
This commit is contained in:
committed by
Szymon Janc
parent
9d7c5c5006
commit
dce1a41a7d
@@ -1457,7 +1457,8 @@ pair(const uint8_t *data, uint16_t len)
|
||||
goto rsp;
|
||||
}
|
||||
|
||||
if (ble_gap_security_initiate(desc.conn_handle)) {
|
||||
rc = ble_gap_security_initiate(desc.conn_handle);
|
||||
if (rc != 0 && rc != BLE_HS_EALREADY) {
|
||||
status = BTP_STATUS_FAILED;
|
||||
goto rsp;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user