From 692b43cc5716b6299136e374bf27ae37c7990f9e Mon Sep 17 00:00:00 2001 From: Alexander Bobkov Date: Mon, 13 Jan 2025 22:21:33 -0500 Subject: [PATCH] ESP32-Console --- ESP32-Console/main/commands.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ESP32-Console/main/commands.h b/ESP32-Console/main/commands.h index ad80f3d02..7f7f3a7a4 100644 --- a/ESP32-Console/main/commands.h +++ b/ESP32-Console/main/commands.h @@ -6,6 +6,7 @@ #include "argtable3/argtable3.h" #include "esp_chip_info.h" +#include "soc/rtc.h" #include "esp_console.h" #include "esp_log.h" @@ -33,7 +34,7 @@ static int exec_info_cmd (int argc, char **argv) { rtc_cpu_freq_config_t freq_config; rtc_clk_cpu_freq_get_config(&freq_config); - + 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);