From 833d15db65f55226a16df4747c1597115fa9490c Mon Sep 17 00:00:00 2001 From: acidvegas Date: Wed, 29 May 2024 00:34:22 -0400 Subject: [PATCH] Found a better way to silence library warnings --- .../User_Setups/Setup210_LilyGo_T_Deck.h | 21 ------------------- platformio.ini | 1 + 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/lib/TFT_eSPI/User_Setups/Setup210_LilyGo_T_Deck.h b/lib/TFT_eSPI/User_Setups/Setup210_LilyGo_T_Deck.h index 822429f..79c7b2d 100644 --- a/lib/TFT_eSPI/User_Setups/Setup210_LilyGo_T_Deck.h +++ b/lib/TFT_eSPI/User_Setups/Setup210_LilyGo_T_Deck.h @@ -1,24 +1,3 @@ -// Added by acidvegas to hide warnings during build -#ifdef TFT_MISO -#undef TFT_MISO -#endif -#ifdef TFT_MOSI -#undef TFT_MOSI -#endif -#ifdef TFT_CS -#undef TFT_CS -#endif -#ifdef TFT_DC -#undef TFT_DC -#endif -#ifdef TFT_RST -#undef TFT_RST -#endif -#ifdef TFT_BL -#undef TFT_BL -#endif - - // ST7789 240 x 280 display with no chip select line #define USER_SETUP_ID 210 diff --git a/platformio.ini b/platformio.ini index baa7fb2..084c496 100644 --- a/platformio.ini +++ b/platformio.ini @@ -22,6 +22,7 @@ board_build.partitions = default_16MB.csv build_flags = -DBOARD_HAS_PSRAM -DARDUINO_USB_CDC_ON_BOOT=1 + -DDISABLE_ALL_LIBRARY_WARNINGS lib_deps = ;mikalhart/TinyGPSPlus@^1.0.2 marian-craciunescu/ESP32Ping@^1.7.0