mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/btdm_add_assert_when_no_device_name' into 'master'
component/bt: Fix exception when there is no device name See merge request idf/esp-idf!2184
This commit is contained in:
commit
0d55f2cb7b
@ -35,7 +35,9 @@ const uint8_t *esp_bt_dev_get_address(void);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Set bluetooth device name. This function should be called after esp_bluedroid_enable()
|
* @brief Set bluetooth device name. This function should be called after esp_bluedroid_enable()
|
||||||
* completes successfully
|
* completes successfully.
|
||||||
|
* A BR/EDR/LE device type shall have a single Bluetooth device name which shall be
|
||||||
|
* identical irrespective of the physical channel used to perform the name discovery procedure.
|
||||||
*
|
*
|
||||||
* @param[in] name : device name to be set
|
* @param[in] name : device name to be set
|
||||||
*
|
*
|
||||||
|
@ -434,6 +434,12 @@ void btc_dm_sec_cb_handler(btc_msg_t *msg)
|
|||||||
//load the bonding device to the btm layer
|
//load the bonding device to the btm layer
|
||||||
btc_storage_load_bonded_ble_devices();
|
btc_storage_load_bonded_ble_devices();
|
||||||
#endif ///SMP_INCLUDED == TRUE
|
#endif ///SMP_INCLUDED == TRUE
|
||||||
|
|
||||||
|
/* Set initial device name, it can be overwritten later */
|
||||||
|
if (p_data->enable.status == BTA_SUCCESS) {
|
||||||
|
char *initial_device_name = "ESP32";
|
||||||
|
BTA_DmSetDeviceName(initial_device_name);
|
||||||
|
}
|
||||||
btc_enable_bluetooth_evt(p_data->enable.status);
|
btc_enable_bluetooth_evt(p_data->enable.status);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 9a93239bc8f54bc5434e8a3dec98e2a8b6b9454a
|
Subproject commit 74a772d0b88271d6161d0e61e4c358030a001ab5
|
Loading…
x
Reference in New Issue
Block a user