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
@@ -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;