rename function to avoid confusion

This commit is contained in:
Jeff Epler 2022-07-13 13:28:51 -05:00
parent 5c6ee20ca5
commit 13be10ef14
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE
1 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@
#define esp_himem_reserved_area_size() (0)
#endif
static size_t spiram_size_usable_for_malloc(void) {
static size_t spiram_size_usable(void) {
/* SPIRAM chip may be larger than the size we can map into address space */
size_t s = MIN(esp_spiram_get_size(), SOC_EXTRAM_DATA_SIZE);
return s - esp_himem_reserved_area_size();
@ -220,7 +220,7 @@ safe_mode_t port_init(void) {
#ifdef CONFIG_SPIRAM
if (esp_spiram_is_initialized()) {
size_t spiram_size = spiram_size_usable_for_malloc();
size_t spiram_size = spiram_size_usable();
#ifdef CONFIG_IDF_TARGET_ESP32
heap = (uint32_t *)SOC_EXTRAM_DATA_LOW;
#else