bugfix: deinit ble for specifies ESP_BT_MODE_BTDM

This commit is contained in:
Yuan Mingfu 2023-04-04 10:49:44 +08:00 committed by InfiniteYuan
parent ef4b1b7704
commit 3cc5ad7ac4
2 changed files with 14 additions and 14 deletions

View File

@ -816,7 +816,7 @@ esp_err_t esp_bt_mem_release(esp_bt_mode_t mode)
{
intptr_t mem_start, mem_end;
if (mode == ESP_BT_MODE_BLE) {
if (mode & ESP_BT_MODE_BLE) {
mem_start = (intptr_t)&_bt_bss_start;
mem_end = (intptr_t)&_bt_bss_end;
if (mem_start != mem_end) {

View File

@ -790,7 +790,7 @@ esp_err_t esp_bt_mem_release(esp_bt_mode_t mode)
{
intptr_t mem_start, mem_end;
if (mode == ESP_BT_MODE_BLE) {
if (mode & ESP_BT_MODE_BLE) {
mem_start = (intptr_t)&_bt_bss_start;
mem_end = (intptr_t)&_bt_bss_end;
if (mem_start != mem_end) {