mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/bt_assert_failed_when_interrupt_hlevel_disable' into 'master'
component/bt: fix assert fail when interrupt hlevel disable See merge request espressif/esp-idf!16042
This commit is contained in:
commit
588235f3b1
@ -1796,13 +1796,21 @@ esp_err_t esp_bt_controller_deinit(void)
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
static void bt_controller_shutdown(void* arg)
|
||||
{
|
||||
esp_bt_controller_shutdown();
|
||||
}
|
||||
|
||||
static void bt_shutdown(void)
|
||||
{
|
||||
if (btdm_controller_status != ESP_BT_CONTROLLER_STATUS_ENABLED) {
|
||||
return;
|
||||
}
|
||||
|
||||
esp_bt_controller_shutdown();
|
||||
#if !CONFIG_FREERTOS_UNICORE
|
||||
esp_ipc_call_blocking(CONFIG_BTDM_CTRL_PINNED_TO_CORE, bt_controller_shutdown, NULL);
|
||||
#else
|
||||
bt_controller_shutdown(NULL);
|
||||
#endif
|
||||
esp_phy_disable();
|
||||
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user