Skip to content

Commit f55dfd6

Browse files
committed
Allow configurations from External libraries
1 parent 7817224 commit f55dfd6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/Arduino_ConnectionHandlerDefinitions.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,20 @@
2323

2424
#include <Arduino.h>
2525

26+
/******************************************************************************
27+
* AUTOMATICALLY CONFIGURED DEFINES FROM EXTERNAL LIBRARIES
28+
******************************************************************************/
29+
30+
#if defined __has_include
31+
#if __has_include (<Arduino_NotecardConnectionHandler.h>)
32+
#define USE_NOTECARD
33+
#endif
34+
#endif
35+
36+
/******************************************************************************
37+
* AUTOMATICALLY CONFIGURED DEFINES
38+
******************************************************************************/
39+
2640
#ifdef ARDUINO_SAMD_MKR1000
2741
#define BOARD_HAS_WIFI
2842
#define NETWORK_HARDWARE_ERROR WL_NO_SHIELD

0 commit comments

Comments
 (0)