From dcc25cf7e9a90b0a4dd2153a3c47575c90188414 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Wed, 1 Sep 2021 23:06:39 +0200 Subject: [PATCH] Fix compilation for ESP8266 --- tasmota/tasmota.ino | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tasmota/tasmota.ino b/tasmota/tasmota.ino index 3dd6da220..f6c0275d3 100644 --- a/tasmota/tasmota.ino +++ b/tasmota/tasmota.ino @@ -275,15 +275,17 @@ void setup(void) { } // AddLog(LOG_LEVEL_INFO, PSTR("ADR: Settings %p, Log %p"), Settings, TasmotaGlobal.log_buffer); +#ifdef ESP32 AddLog(LOG_LEVEL_INFO, PSTR("HDW: %s %s"), GetDeviceHardware().c_str(), FoundPSRAM() ? (CanUsePSRAM() ? "(PSRAM)" : "(PSRAM disabled)") : "" ); -#ifdef ESP32 AddLog(LOG_LEVEL_DEBUG, PSTR("HDW: FoundPSRAM=%i CanUsePSRAM=%i"), FoundPSRAM(), CanUsePSRAM()); -#endif // ESP32 -#if defined(ESP32) && !defined(HAS_PSRAM_FIX) + #if !defined(HAS_PSRAM_FIX) if (FoundPSRAM() && !CanUsePSRAM()) { AddLog(LOG_LEVEL_INFO, PSTR("HDW: PSRAM is disabled, requires specific compilation on this hardware (see doc)")); } + #endif +#else // ESP32 + AddLog(LOG_LEVEL_INFO, PSTR("HDW: %s"), GetDeviceHardware().c_str()); #endif // ESP32 #ifdef USE_UFILESYS