mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-06-06 05:14:45 +00:00
fix(nimble): Added return code in ble_gap_unpair error logs
This commit is contained in:
committed by
Rahul Tank
parent
d53c988a93
commit
794fb12e75
@@ -6995,7 +6995,7 @@ ble_gap_unpair(const ble_addr_t *peer_addr)
|
||||
irk_rc = ble_hs_pvcy_remove_entry(key.sec.peer_addr.type,
|
||||
key.sec.peer_addr.val);
|
||||
if (irk_rc != 0) {
|
||||
BLE_HS_LOG(ERROR, "Error while removing IRK\n");
|
||||
BLE_HS_LOG(ERROR, "Error while removing IRK , rc = %x\n",irk_rc);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7003,7 +7003,7 @@ ble_gap_unpair(const ble_addr_t *peer_addr)
|
||||
// Delete the Peer record from store as LTK is present
|
||||
ltk_rc = ble_store_util_delete_peer(&key.sec.peer_addr);
|
||||
if (ltk_rc != 0) {
|
||||
BLE_HS_LOG(ERROR, "Error while removing LTK\n");
|
||||
BLE_HS_LOG(ERROR, "Error while removing LTK , rc = %x\n",ltk_rc);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7013,7 +7013,7 @@ ble_gap_unpair(const ble_addr_t *peer_addr)
|
||||
ble_store_util_delete_peer(&key.sec.peer_addr);
|
||||
}
|
||||
else {
|
||||
BLE_HS_LOG(ERROR,"No record found for the given address in ble store");
|
||||
BLE_HS_LOG(ERROR,"No record found for the given address in ble store , rc = %x\n",rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user