From b4c2fe3988051db040339415d2bf20b5ea31a44a Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Tue, 9 Jun 2026 02:49:39 +0300 Subject: [PATCH] Print total RAM in sys command --- flix/cli.ino | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flix/cli.ino b/flix/cli.ino index 858e7ac..9eaa12c 100644 --- a/flix/cli.ino +++ b/flix/cli.ino @@ -172,7 +172,8 @@ void doCommand(String str, bool echo = false) { #ifdef ESP32 print("Chip: %s\n", ESP.getChipModel()); print("Temperature: %.1f °C\n", temperatureRead()); - print("Free heap: %d\n", ESP.getFreeHeap()); + print("Total RAM: %d KB\n", ESP.getHeapSize() / 1024); + print("Free heap: %d KB\n", ESP.getFreeHeap() / 1024); print("Firmware: " __DATE__ " " __TIME__ "\n"); // Print tasks table print("Num Task MinSt Prio Core CPU%%\n");