Fix wifi is initialized before bluetooth initialization, bluetooth can't stay connected

This commit is contained in:
xiongweichao
2022-06-20 11:46:40 +08:00
parent 495d35949d
commit 155c4a5cb3
3 changed files with 4 additions and 6 deletions

View File

@@ -235,6 +235,7 @@ extern int ble_txpwr_get(int power_type);
extern uint16_t l2c_ble_link_get_tx_buf_num(void);
extern int coex_core_ble_conn_dyn_prio_get(bool *low, bool *high);
extern void coex_pti_v2(void);
extern bool btdm_deep_sleep_mem_init(void);
extern void btdm_deep_sleep_mem_deinit(void);
@@ -1125,6 +1126,7 @@ esp_err_t esp_bt_controller_init(esp_bt_controller_config_t *cfg)
err = ESP_ERR_NO_MEM;
goto error;
}
coex_pti_v2();
btdm_controller_status = ESP_BT_CONTROLLER_STATUS_INITED;