Skip to content

Commit

Permalink
himem: Fixed incorrect out_ptr when calling esp_himem_map range_offse…
Browse files Browse the repository at this point in the history
…t non-zero

Closes: #5639
  • Loading branch information
ginkgm committed Apr 5, 2023
1 parent ef4b1b7 commit 80e4b67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp_psram/esp32/esp_himem.c
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ esp_err_t esp_himem_map(esp_himem_handle_t handle, esp_himem_rangehandle_t range
}

//Set out pointer
*out_ptr = (void *)(VIRT_HIMEM_RANGE_START + (range->block_start + range_offset) * CACHE_BLOCKSIZE);
*out_ptr = (void *)(VIRT_HIMEM_RANGE_START + (range->block_start + range_block) * CACHE_BLOCKSIZE);
return ESP_OK;
}

Expand Down

0 comments on commit 80e4b67

Please sign in to comment.