From 12693fec273d20db2805b534d3dc5926dc4fd308 Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Mon, 13 Jan 2025 22:12:02 -0500 Subject: [PATCH] ESP32-Console --- ESP32-Console/main/commands.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ESP32-Console/main/commands.h b/ESP32-Console/main/commands.h index 7d7b75b15..cac8d4c38 100644 --- a/ESP32-Console/main/commands.h +++ b/ESP32-Console/main/commands.h @@ -32,8 +32,11 @@ static struct { static int exec_info_cmd (int argc, char **argv) { uint32_t total_internal_memory = heap_caps_get_total_size(MALLOC_CAP_INTERNAL); + uint32_t free_internal_memory = heap_caps_get_free_size(MALLOC_CAP_INTERNAL); ESP_LOGW("CLI", "Information about microcontroller chip."); + ESP_LOGI("Memory Info", "Total DRAM (internal memory): %"PRIu32" bytes", total_internal_memory); + ESP_LOGI("Memory Info", "Free DRAM (internal memory): %"PRIu32" bytes", free_internal_memory); int nerrors = arg_parse(argc, argv, (void**) &info_args); if (nerrors != 0) {