From f0f70ce1dfc7cff297dae21782c89fd7429b8712 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Sun, 18 Jul 2021 19:52:50 +0200 Subject: [PATCH] Fix compilation for ESP8266 --- tasmota/tasmota.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/tasmota.ino b/tasmota/tasmota.ino index 03ad6ad16..721770637 100644 --- a/tasmota/tasmota.ino +++ b/tasmota/tasmota.ino @@ -276,7 +276,9 @@ void setup(void) { // AddLog(LOG_LEVEL_INFO, PSTR("ADR: Settings %p, Log %p"), Settings, TasmotaGlobal.log_buffer); AddLog(LOG_LEVEL_INFO, PSTR("HDW: %s"), GetDeviceHardware().c_str()); +#ifdef ESP32 AddLog(LOG_LEVEL_DEBUG, PSTR("HDW: psramFound=%i CanUsePSRAM=%i"), psramFound(), CanUsePSRAM()); +#endif // ESP32 #if defined(ESP32) && !defined(HAS_PSRAM_FIX) if (psramFound() && !CanUsePSRAM()) { AddLog(LOG_LEVEL_INFO, PSTR("HDW: PSRAM is disabled, requires specific compilation on this hardware (see doc)"));