From 25b490ac12699facd0783cb8b6fd93f60f82e37b Mon Sep 17 00:00:00 2001 From: David Gwilliam Date: Mon, 16 Feb 2026 12:38:40 -0800 Subject: [PATCH] fix: make .ino compile guard target-aware ST7796_DRIVER check only fires when USE_TFT_ESPI is active. Waveshare (Arduino_GFX) path skips this check entirely. --- .../doorbell-touch-esp32-32e/doorbell-touch-esp32-32e.ino | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sketches/doorbell-touch-esp32-32e/doorbell-touch-esp32-32e.ino b/sketches/doorbell-touch-esp32-32e/doorbell-touch-esp32-32e.ino index 55a8753..778c169 100644 --- a/sketches/doorbell-touch-esp32-32e/doorbell-touch-esp32-32e.ino +++ b/sketches/doorbell-touch-esp32-32e/doorbell-touch-esp32-32e.ino @@ -13,15 +13,17 @@ #include "Config.h" #include "DisplayManager.h" #include "DoorbellLogic.h" +#include "BoardConfig.h" #include #ifndef LOAD_GLCD #error "LOAD_GLCD is NOT defined — fonts missing!" #endif -#ifndef ST7796_DRIVER - #error "ST7796_DRIVER is NOT defined — wrong setup!" +#if USE_TFT_ESPI + #ifndef ST7796_DRIVER + #error "TFT_eSPI setup mismatch — ST7796_DRIVER expected for E32R35T" + #endif #endif - #define HOLD_TO_SILENCE_MS 1000 DoorbellLogic logic;