Test that USER_SETUP_LOADED is defined

This commit is contained in:
fvanroie 2021-10-08 00:42:06 +02:00
parent 3c44fecb38
commit b0b9bb2e4f
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
/* MIT License - Copyright (c) 2019-2021 Francis Van Roie /* MIT License - Copyright (c) 2019-2021 Francis Van Roie
For full license information read the LICENSE file in the project folder */ For full license information read the LICENSE file in the project folder */
#ifdef ARDUINO #if defined(ARDUINO) && defined(USER_SETUP_LOADED)
#include "tft_driver_tftespi.h" #include "tft_driver_tftespi.h"
namespace dev { namespace dev {

View File

@ -4,7 +4,7 @@
#ifndef HASP_TFTESPI_DRIVER_H #ifndef HASP_TFTESPI_DRIVER_H
#define HASP_TFTESPI_DRIVER_H #define HASP_TFTESPI_DRIVER_H
#ifdef ARDUINO #if defined(ARDUINO) && defined(USER_SETUP_LOADED)
#include "Arduino.h" #include "Arduino.h"
#include "lvgl.h" #include "lvgl.h"