From c973632fb8471391c0d67cf4b96b4e81290accfc Mon Sep 17 00:00:00 2001 From: Emanuele Trabattoni Date: Sun, 17 Aug 2025 18:41:24 +0200 Subject: [PATCH] PSram check --- include/pinlist.h | 1 + src/main.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/pinlist.h b/include/pinlist.h index 109ca24..b64f7e7 100644 --- a/include/pinlist.h +++ b/include/pinlist.h @@ -1,3 +1,4 @@ +#pragma once enum RO // relay output channels { diff --git a/src/main.cpp b/src/main.cpp index 8b5a470..d6b009c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -24,6 +24,11 @@ void setup() LOG_ATTACH_SERIAL(Serial); LOG_SET_LEVEL(DebugLogLevel::LVL_INFO); conf.init(); // read the configuration from internal flash + LOG_INFO("ESP32 Chip:", ESP.getChipModel()); + LOG_INFO("ESP32 PSram:", ESP.getPsramSize()); + LOG_INFO("ESP32 Flash:", ESP.getFlashChipSize()); + LOG_INFO("ESP32 Heap:", ESP.getHeapSize()); + LOG_INFO("ESP32 Sketch:", ESP.getFreeSketchSpace()); } void loop()