From e43c7b7a96b3ccc1151b1a5de8a07d06091cdc3a Mon Sep 17 00:00:00 2001 From: lovyan03 <42724151+lovyan03@users.noreply.github.com> Date: Tue, 28 Jan 2025 15:51:44 +0900 Subject: [PATCH] fix compile error --- src/lgfx/v1/platforms/esp32/common.cpp | 2 +- src/lgfx/v1/platforms/esp32/common.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lgfx/v1/platforms/esp32/common.cpp b/src/lgfx/v1/platforms/esp32/common.cpp index 800810d2..c1ef1e85 100644 --- a/src/lgfx/v1/platforms/esp32/common.cpp +++ b/src/lgfx/v1/platforms/esp32/common.cpp @@ -1608,7 +1608,7 @@ namespace lgfx if (_need_reinit) { int sda = _pin_backup[SEARCH_SDA_IDX].getPin(); int scl = _pin_backup[SEARCH_SCL_IDX].getPin(); -#if defined ( ARDUINO ) +#if defined ( ARDUINO ) && __has_include () if (_twowire) { _twowire->begin(sda, scl); } diff --git a/src/lgfx/v1/platforms/esp32/common.hpp b/src/lgfx/v1/platforms/esp32/common.hpp index 4520d16e..eb15ec54 100644 --- a/src/lgfx/v1/platforms/esp32/common.hpp +++ b/src/lgfx/v1/platforms/esp32/common.hpp @@ -36,7 +36,7 @@ Original Source: #if __has_include() #include -#else +#elif __has_include() #include #endif