From 1207bce8754989059f9510d9931e1f2da102d9bb Mon Sep 17 00:00:00 2001 From: "Zachary J. Fields" Date: Wed, 24 Jul 2024 23:12:31 -0500 Subject: [PATCH] chore: Enable IDE compilation --- src/AIoTC_Config.h | 7 +++++++ src/utility/time/RTCMillis.cpp | 2 ++ 2 files changed, 9 insertions(+) diff --git a/src/AIoTC_Config.h b/src/AIoTC_Config.h index 4c1bd899..ed26a67c 100644 --- a/src/AIoTC_Config.h +++ b/src/AIoTC_Config.h @@ -18,6 +18,13 @@ #ifndef ARDUINO_AIOTC_CONFIG_H_ #define ARDUINO_AIOTC_CONFIG_H_ +#if defined __has_include + #if __has_include () + #pragma message "[USE_NOTECARD] Using Notecard library" + #define USE_NOTECARD + #endif +#endif + #include /****************************************************************************** diff --git a/src/utility/time/RTCMillis.cpp b/src/utility/time/RTCMillis.cpp index 81160382..63d6c44e 100644 --- a/src/utility/time/RTCMillis.cpp +++ b/src/utility/time/RTCMillis.cpp @@ -19,6 +19,8 @@ * INCLUDE **************************************************************************************/ +#include "AIoTC_Config.h" + #if defined(USE_NOTECARD) || defined(ARDUINO_ARCH_ESP8266) #include