mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'bugfix/coex_enable_disable_not_in_pairs_v4.3' into 'release/v4.3'
bluetooth: fix that functions "coex_enable" and "coex_disable" are not used in pairs(backport v4.3) See merge request espressif/esp-idf!22096
This commit is contained in:
commit
419d6209a8
@ -1380,7 +1380,7 @@ static void bt_controller_deinit_internal(void)
|
|||||||
|
|
||||||
esp_err_t esp_bt_controller_enable(esp_bt_mode_t mode)
|
esp_err_t esp_bt_controller_enable(esp_bt_mode_t mode)
|
||||||
{
|
{
|
||||||
int ret = ESP_OK;
|
esp_err_t ret = ESP_OK;
|
||||||
|
|
||||||
if (btdm_controller_status != ESP_BT_CONTROLLER_STATUS_INITED) {
|
if (btdm_controller_status != ESP_BT_CONTROLLER_STATUS_INITED) {
|
||||||
return ESP_ERR_INVALID_STATE;
|
return ESP_ERR_INVALID_STATE;
|
||||||
@ -1435,6 +1435,9 @@ error:
|
|||||||
#endif
|
#endif
|
||||||
} while (0);
|
} while (0);
|
||||||
|
|
||||||
|
#if CONFIG_SW_COEXIST_ENABLE
|
||||||
|
coex_disable();
|
||||||
|
#endif
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user