mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
feat(bt): remove the deprecated functions and parametes
This commit is contained in:
+2
-1
@@ -543,7 +543,8 @@ void app_main(void)
|
||||
|
||||
ESP_LOGI(GATTS_TABLE_TAG, "%s init bluetooth", __func__);
|
||||
|
||||
ret = esp_bluedroid_init();
|
||||
esp_bluedroid_config_t cfg = BT_BLUEDROID_INIT_CONFIG_DEFAULT();
|
||||
ret = esp_bluedroid_init_with_cfg(&cfg);
|
||||
if (ret) {
|
||||
ESP_LOGE(GATTS_TABLE_TAG, "%s init bluetooth failed: %s", __func__, esp_err_to_name(ret));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user