[Build] Set LIMIT_BUILD_SIZE also for ESP32 on DISPLAY builds (and pre-IDF4.x) to fix build-size issue

This commit is contained in:
Ton Huisman
2022-01-14 15:43:22 +01:00
parent 99df4eaca3
commit 074cfcfbbb
+2 -2
View File
@@ -1221,8 +1221,8 @@ To create/register a plugin, you have to :
// Collection of all display plugins. (also NeoPixel)
#ifdef PLUGIN_DISPLAY_COLLECTION
#if !defined(LIMIT_BUILD_SIZE) && defined(ESP8266)
#define LIMIT_BUILD_SIZE // Redice buildsize on ESP8266 to fit in all Display plugins
#if !defined(LIMIT_BUILD_SIZE) && (defined(ESP8266) || ESP_IDF_VERSION_MAJOR < 4)
#define LIMIT_BUILD_SIZE // Reduce buildsize (on ESP8266 / pre-IDF4.x) to fit in all Display plugins
#endif
#ifndef USES_P012
#define USES_P012 // LCD