fix(blufi): Fixed blufi init fail after deinit

(cherry picked from commit 7addb57ccd)

Co-authored-by: zhanghaipeng <zhanghaipeng@espressif.com>
This commit is contained in:
Zhang Hai Peng
2024-12-09 17:45:23 +08:00
parent b115b78549
commit d9ae4e437e
2 changed files with 5 additions and 4 deletions

View File

@@ -1341,7 +1341,8 @@ static esp_err_t esp_bt_controller_rom_mem_release(esp_bt_mode_t mode)
//already released
if (!(mode & btdm_dram_available_region[0].mode)) {
return ESP_ERR_INVALID_STATE;
ESP_LOGW(BTDM_LOG_TAG, "%s already released, mode %d",__func__, mode);
return ESP_OK;
}
for (int i = 0; i < sizeof(btdm_dram_available_region)/sizeof(btdm_dram_available_region_t); i++) {