fix(ble/bluedroid): Remove esp_bluedroid_init() discard declaration

This commit is contained in:
zhiweijian
2024-04-30 12:02:45 +08:00
parent 9b3ae86417
commit 7e97c5fb16
38 changed files with 78 additions and 131 deletions
@@ -70,7 +70,7 @@ esp_err_t esp_bluedroid_disable(void);
* - ESP_OK : Succeed
* - Other : Failed
*/
esp_err_t esp_bluedroid_init(void) __attribute__((deprecated("Please use esp_bluedroid_init_with_cfg")));
esp_err_t esp_bluedroid_init(void);
/**
* @brief Init and alloc the resource for bluetooth, must be prior to every bluetooth stuff.
@@ -237,8 +237,7 @@ esp_err_t simple_ble_start(simple_ble_cfg_t *cfg)
}
#endif
esp_bluedroid_config_t bluedroid_cfg = BT_BLUEDROID_INIT_CONFIG_DEFAULT();
ret = esp_bluedroid_init_with_cfg(&bluedroid_cfg);
ret = esp_bluedroid_init();
if (ret) {
ESP_LOGE(TAG, "%s init bluetooth failed %d", __func__, ret);
return ret;