From 23dd1960130a493d8721b841bff9448cd2aa8045 Mon Sep 17 00:00:00 2001 From: mrfaptastic <12006953+mrfaptastic@users.noreply.github.com> Date: Mon, 24 Oct 2022 07:53:39 +0100 Subject: [PATCH] Update ESP32-HUB75-MatrixPanel-I2S-DMA.cpp --- src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp index dde328d..28e3277 100644 --- a/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp +++ b/src/ESP32-HUB75-MatrixPanel-I2S-DMA.cpp @@ -13,8 +13,8 @@ static const char* TAG = "MatrixPanel"; bool MatrixPanel_I2S_DMA::allocateDMAmemory() { - ESP_LOGI(TAG, "Free heap: %d", ESP.getFreeHeap()); - ESP_LOGI(TAG, "Free SPIRAM: %d", ESP.getFreePsram()); + ESP_LOGI(TAG, "Free heap: %d", heap_caps_get_free_size(MALLOC_CAP_INTERNAL)); + ESP_LOGI(TAG, "Free SPIRAM: %d", heap_caps_get_free_size(MALLOC_CAP_SPIRAM)); // Alright, theoretically we should be OK, so let us do this, so