diff options
Diffstat (limited to 'btif/src/btif_gatt_client.c')
-rw-r--r-- | btif/src/btif_gatt_client.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/btif/src/btif_gatt_client.c b/btif/src/btif_gatt_client.c index 253ca2bd1..a959cdd73 100644 --- a/btif/src/btif_gatt_client.c +++ b/btif/src/btif_gatt_client.c @@ -458,8 +458,6 @@ static void btif_gattc_update_properties ( btif_gattc_cb_t *p_btif_cb ) btif_dm_update_ble_remote_properties( p_btif_cb->bd_addr.address, bdname.name, p_btif_cb->device_type); } - - btif_storage_set_remote_addr_type( &p_btif_cb->bd_addr, p_btif_cb->addr_type); } static void btif_gattc_upstreams_evt(uint16_t event, char* p_param) @@ -646,6 +644,8 @@ static void btif_gattc_upstreams_evt(uint16_t event, char* p_param) BT_PROPERTY_TYPE_OF_DEVICE, sizeof(dev_type), &dev_type); btif_storage_set_remote_device_property(&(p_btif_cb->bd_addr), &properties); + btif_storage_set_remote_addr_type( &p_btif_cb->bd_addr, p_btif_cb->addr_type); + HAL_CBACK(bt_gatt_callbacks, client->scan_result_cb, &p_btif_cb->bd_addr, p_btif_cb->rssi, p_btif_cb->value); break; |