kopia lustrzana https://github.com/espressif/esp-idf
components/bt: Fix the issue caused by the power off the bt power domain
rodzic
a2790756b0
commit
0c0d0f9b35
|
@ -37,6 +37,7 @@
|
|||
#include "esp32c3/rom/rom_layout.h"
|
||||
#include "esp_timer.h"
|
||||
#include "esp_sleep.h"
|
||||
#include "phy.h"
|
||||
|
||||
#if CONFIG_BT_ENABLED
|
||||
|
||||
|
@ -1237,6 +1238,11 @@ esp_err_t esp_bt_controller_deinit(void)
|
|||
esp_unregister_mac_bb_pu_callback(btdm_mac_bb_power_up_cb);
|
||||
#endif
|
||||
|
||||
/* Fix the issue caused by the power off the bt power domain.
|
||||
* This issue is only on ESP32C3.
|
||||
*/
|
||||
phy_init_flag();
|
||||
|
||||
esp_bt_power_domain_off();
|
||||
|
||||
free(osi_funcs_p);
|
||||
|
|
Ładowanie…
Reference in New Issue