From 6c74d55292d89b695b64eee2aa5b2f510ee21c95 Mon Sep 17 00:00:00 2001 From: Paul Tsupikoff Date: Mon, 31 Oct 2022 17:42:07 +0100 Subject: [PATCH] Fix typo and remove unnecessary error in TFT_config.h 1. RGB configuration was configured incorrectly, and caused re-definition warnings. 2. MISO pin is not always set, so shouldn't trigger a compilation error (see e.g. `Setup25_TTGO_T_DISPLAY.h`). --- TFT_config.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/TFT_config.h b/TFT_config.h index 76aff1e..776d38a 100644 --- a/TFT_config.h +++ b/TFT_config.h @@ -78,7 +78,7 @@ #define TFT_RGB_ORDER TFT_RGB #endif -#ifdef CONFIG_TFT_RGB_ORDER +#ifdef CONFIG_TFT_BGR_ORDER #define TFT_RGB_ORDER TFT_BGR #endif @@ -223,9 +223,7 @@ // SPI BUS #else - #if CONFIG_TFT_MISO == -1 - #error "Invalid MISO pin. Check TFT_eSPI configuration" - #else + #if CONFIG_TFT_MISO != -1 #define TFT_MISO CONFIG_TFT_MISO #endif