From 188b81c85c64ec6bd3c2112c3166c97d9fdcd67a Mon Sep 17 00:00:00 2001 From: Valerio Vaccaro Date: Mon, 4 Dec 2023 22:31:51 +0100 Subject: [PATCH] fix ESP32-cam --- src/drivers/devices/esp32CAM.h | 2 +- src/drivers/storage/SDCard.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/drivers/devices/esp32CAM.h b/src/drivers/devices/esp32CAM.h index 2949491..c8c1634 100644 --- a/src/drivers/devices/esp32CAM.h +++ b/src/drivers/devices/esp32CAM.h @@ -4,7 +4,7 @@ #define PIN_BUTTON_1 0 #define LED_PIN 33 -#define DONGLE_DISPLAY // NO_DISPLAY +#define NO_DISPLAY // example how to configure SD card. // if you would define everything, diff --git a/src/drivers/storage/SDCard.h b/src/drivers/storage/SDCard.h index 0de28f9..1b00fa3 100644 --- a/src/drivers/storage/SDCard.h +++ b/src/drivers/storage/SDCard.h @@ -27,7 +27,10 @@ #include #include - #include "..\lib\TFT_eSPI\User_Setup_Select.h" + + #if !defined(NO_DISPLAY) + #include "..\lib\TFT_eSPI\User_Setup_Select.h" + #endif #if !defined(NO_DISPLAY) && !defined(LED_DISPLAY) #if !defined(SDSPI_CLK) && defined(TFT_CLK)