From 6e8eaf4a8bea7c895425dbc421c4779b52dfaf5d Mon Sep 17 00:00:00 2001 From: Klaus K Wilting Date: Sun, 8 Jul 2018 12:57:13 +0200 Subject: [PATCH] show free RAM at startup in verbose mode --- src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 4808e7f7..33c29228 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -506,12 +506,14 @@ void setup() { (chip_info.features & CHIP_FEATURE_EMB_FLASH) ? "embedded" : "external"); ESP_LOGI(TAG, "ESP32 SDK: %s", ESP.getSdkVersion()); -#endif + ESP_LOGI(TAG, "Free RAM: %d bytes", ESP.getFreeHeap()); #ifdef HAS_GPS ESP_LOGI(TAG, "TinyGPS+ version %s", TinyGPSPlus::libraryVersion()); #endif +#endif // verbose + // read settings from NVRAM loadConfig(); // includes initialize if necessary