From 827e66ed8f80367b625d41c9efd15bde55aca9e5 Mon Sep 17 00:00:00 2001 From: Mitch Bradley Date: Fri, 1 Mar 2024 10:00:22 -1000 Subject: [PATCH] Omit filesystem support for ESP_PLATFORM and __SAMD51_HARMONY__ .. because the corresponding platforms do not have FileWrapper --- src/lgfx/v1/lgfx_filesystem_support.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lgfx/v1/lgfx_filesystem_support.hpp b/src/lgfx/v1/lgfx_filesystem_support.hpp index 73926097..599d37cf 100644 --- a/src/lgfx/v1/lgfx_filesystem_support.hpp +++ b/src/lgfx/v1/lgfx_filesystem_support.hpp @@ -264,7 +264,9 @@ namespace lgfx #endif #endif -#elif defined (ESP_PLATFORM) || defined(__SAMD51_HARMONY__) || defined(stdin) // ESP-IDF, Harmony, stdio +#elif defined(stdin) // ESP-IDF, Harmony, stdio + // #elif defined (ESP_PLATFORM) || defined(__SAMD51_HARMONY__) || defined(stdin) // ESP-IDF, Harmony, stdio + // esp32 and samd51 platforms do not have FileWrapper #define LGFX_FUNCTION_GENERATOR(drawImg) \ inline bool drawImg##File(const char *path, int32_t x = 0, int32_t y = 0, int32_t maxWidth = 0, int32_t maxHeight = 0, int32_t offX = 0, int32_t offY = 0, float scale_x = 1.0f, float scale_y = 0.0f, datum_t datum = datum_t::top_left) \