mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
feat(ble/controller): Display BLE controller init status for ESP32 and ESP32C3/S3
This commit is contained in:
parent
498cf723f0
commit
24e7d9b1cb
@ -1620,7 +1620,10 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
|
|||||||
|
|
||||||
btdm_cfg_mask = btdm_config_mask_load();
|
btdm_cfg_mask = btdm_config_mask_load();
|
||||||
|
|
||||||
if (btdm_controller_init(btdm_cfg_mask, cfg) != 0) {
|
err = btdm_controller_init(btdm_cfg_mask, cfg);
|
||||||
|
|
||||||
|
if (err != 0) {
|
||||||
|
ESP_LOGE(BTDM_LOG_TAG, "%s %d\n",__func__,err);
|
||||||
err = ESP_ERR_NO_MEM;
|
err = ESP_ERR_NO_MEM;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
@ -1403,7 +1403,10 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
|
|||||||
periph_module_enable(PERIPH_BT_MODULE);
|
periph_module_enable(PERIPH_BT_MODULE);
|
||||||
periph_module_reset(PERIPH_BT_MODULE);
|
periph_module_reset(PERIPH_BT_MODULE);
|
||||||
|
|
||||||
if (btdm_controller_init(cfg) != 0) {
|
err = btdm_controller_init(cfg);
|
||||||
|
|
||||||
|
if (err != 0) {
|
||||||
|
ESP_LOGE(BT_LOG_TAG, "%s %d\n",__func__,err);
|
||||||
err = ESP_ERR_NO_MEM;
|
err = ESP_ERR_NO_MEM;
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user