fix(blufi): Fixed blufi init fail after deinit

This commit is contained in:
zhanghaipeng
2024-11-19 20:43:42 +08:00
parent f3790a01cc
commit 7addb57ccd
2 changed files with 5 additions and 4 deletions

View File

@@ -1345,7 +1345,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++) {