1. fix the bug. Modify the condition that esp_bt_controller_mem_release() shoud be only called before esp_bt_controller_init() or after esp_bt_controller_deinit() 2. modify the example to use esp_bt_controller_mem_release()
Bluetooth Examples
Note: To use examples in this directory, you need to have Bluetooth enabled in configuration. Run make menuconfig, go to Component config and verify if you see [*] Bluetooth. If not - enable it and save.
See the README.md file in the upper level examples directory for more information about examples.