Skip to content

Commit

Permalink
Fix pairing error
Browse files Browse the repository at this point in the history
This commit fixes an issue regarding pairing.
  • Loading branch information
szymon-czapracki committed Jan 16, 2024
1 parent e6882b5 commit dd6feb0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nimble/host/src/ble_gap.c
Original file line number Diff line number Diff line change
Expand Up @@ -6201,7 +6201,8 @@ ble_gap_unpair(const ble_addr_t *peer_addr)

rc = ble_hs_pvcy_remove_entry(peer_addr->type,
peer_addr->val);
if (rc != 0) {

if (rc != 0 && rc != BLE_HS_ERR_HCI_BASE + BLE_ERR_UNK_CONN_ID) {
return rc;
}

Expand Down

0 comments on commit dd6feb0

Please sign in to comment.