Skip to content

Commit

Permalink
chore: Enable IDE compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
zfields committed Jul 25, 2024
1 parent a8e89dc commit 1207bce
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/AIoTC_Config.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@
#ifndef ARDUINO_AIOTC_CONFIG_H_
#define ARDUINO_AIOTC_CONFIG_H_

#if defined __has_include
#if __has_include (<Notecard.h>)
#pragma message "[USE_NOTECARD] Using Notecard library"
#define USE_NOTECARD
#endif
#endif

#include <ArduinoECCX08Config.h>

/******************************************************************************
Expand Down
2 changes: 2 additions & 0 deletions src/utility/time/RTCMillis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* INCLUDE
**************************************************************************************/

#include "AIoTC_Config.h"

#if defined(USE_NOTECARD) || defined(ARDUINO_ARCH_ESP8266)

#include <Arduino.h>
Expand Down

0 comments on commit 1207bce

Please sign in to comment.