Skip to content

Commit 1207bce

Browse files
committed
chore: Enable IDE compilation
1 parent a8e89dc commit 1207bce

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/AIoTC_Config.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
#ifndef ARDUINO_AIOTC_CONFIG_H_
1919
#define ARDUINO_AIOTC_CONFIG_H_
2020

21+
#if defined __has_include
22+
#if __has_include (<Notecard.h>)
23+
#pragma message "[USE_NOTECARD] Using Notecard library"
24+
#define USE_NOTECARD
25+
#endif
26+
#endif
27+
2128
#include <ArduinoECCX08Config.h>
2229

2330
/******************************************************************************

src/utility/time/RTCMillis.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
* INCLUDE
2020
**************************************************************************************/
2121

22+
#include "AIoTC_Config.h"
23+
2224
#if defined(USE_NOTECARD) || defined(ARDUINO_ARCH_ESP8266)
2325

2426
#include <Arduino.h>

0 commit comments

Comments
 (0)