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 599bc24 commit 4dca4bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/esp_hw_support/port/esp32/esp_himem.c
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,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 4dca4bd

Please sign in to comment.