From 7bfd738d804c11cbe8530b9e86624d2c6167748a Mon Sep 17 00:00:00 2001 From: Frank <91616163+softhack007@users.noreply.github.com> Date: Tue, 17 Jan 2023 18:35:04 +0100 Subject: [PATCH] fix 8266 compilation error (undefined macro) this still does not allow compilation... --- .../usermod_v2_four_line_display_ALT.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h b/usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h index 91403bc4..c91aea07 100644 --- a/usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h +++ b/usermods/usermod_v2_four_line_display_ALT/usermod_v2_four_line_display_ALT.h @@ -135,8 +135,12 @@ class FourLineDisplayUsermod : public Usermod { bool sleepMode = true; // allow screen sleep? bool clockMode = false; // display clock bool showSeconds = true; // display clock with seconds -#if defined(ARDUINO_ARCH_ESP32) && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 0, 0) +#if defined(ARDUINO_ARCH_ESP32) +#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 0, 0) bool enabled = false; // WLEDMM workaround for I2C bugs in IDF v4.4.1 +#else + bool enabled = true; +#endif #else bool enabled = true; #endif