Skip to content

Commit 13be10e

Browse files
committed
rename function to avoid confusion
1 parent 5c6ee20 commit 13be10e

File tree

1 file changed

+2
-2
lines changed
  • ports/espressif/supervisor

1 file changed

+2
-2
lines changed

ports/espressif/supervisor/port.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
#define esp_himem_reserved_area_size() (0)
9696
#endif
9797

98-
static size_t spiram_size_usable_for_malloc(void) {
98+
static size_t spiram_size_usable(void) {
9999
/* SPIRAM chip may be larger than the size we can map into address space */
100100
size_t s = MIN(esp_spiram_get_size(), SOC_EXTRAM_DATA_SIZE);
101101
return s - esp_himem_reserved_area_size();
@@ -220,7 +220,7 @@ safe_mode_t port_init(void) {
220220

221221
#ifdef CONFIG_SPIRAM
222222
if (esp_spiram_is_initialized()) {
223-
size_t spiram_size = spiram_size_usable_for_malloc();
223+
size_t spiram_size = spiram_size_usable();
224224
#ifdef CONFIG_IDF_TARGET_ESP32
225225
heap = (uint32_t *)SOC_EXTRAM_DATA_LOW;
226226
#else

0 commit comments

Comments
 (0)