mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Component/bt: fix get bond list error when connection with no bond
This commit is contained in:
parent
f6a7cda7b6
commit
7275490322
@ -175,6 +175,10 @@ static void btc_dm_remove_ble_bonding_keys(void)
|
|||||||
|
|
||||||
static void btc_dm_save_ble_bonding_keys(void)
|
static void btc_dm_save_ble_bonding_keys(void)
|
||||||
{
|
{
|
||||||
|
if(!(pairing_cb.ble.is_penc_key_rcvd || pairing_cb.ble.is_pid_key_rcvd || pairing_cb.ble.is_pcsrk_key_rcvd ||
|
||||||
|
pairing_cb.ble.is_lenc_key_rcvd || pairing_cb.ble.is_lcsrk_key_rcvd || pairing_cb.ble.is_lidk_key_rcvd)) {
|
||||||
|
return ;
|
||||||
|
}
|
||||||
bt_bdaddr_t bd_addr;
|
bt_bdaddr_t bd_addr;
|
||||||
|
|
||||||
bdcpy(bd_addr.address, pairing_cb.bd_addr);
|
bdcpy(bd_addr.address, pairing_cb.bd_addr);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user