Skip to content

Commit 2dbaa65

Browse files
committed
Allow def undef configurations from external libraries
1 parent bc9691b commit 2dbaa65

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Diff for: src/ConnectionHandlerDefinitions.h

+6-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333

3434
#if defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_NANO_33_IOT) || \
3535
defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined (ARDUINO_NANO_RP2040_CONNECT)
36-
3736
#define BOARD_HAS_WIFI
3837
#define NETWORK_HARDWARE_ERROR WL_NO_MODULE
3938
#define NETWORK_IDLE_STATUS WL_IDLE_STATUS
@@ -79,7 +78,6 @@
7978
#endif
8079

8180
#if defined(ARDUINO_GIGA)
82-
8381
#define BOARD_HAS_WIFI
8482
#define NETWORK_HARDWARE_ERROR WL_NO_SHIELD
8583
#define NETWORK_IDLE_STATUS WL_IDLE_STATUS
@@ -105,7 +103,6 @@
105103
#endif
106104

107105
#if defined(ARDUINO_ARCH_ESP8266)
108-
109106
#define BOARD_HAS_WIFI
110107
#define NETWORK_HARDWARE_ERROR WL_NO_SHIELD
111108
#define NETWORK_IDLE_STATUS WL_IDLE_STATUS
@@ -136,6 +133,12 @@
136133
#define NETWORK_HARDWARE_ERROR
137134
#endif
138135

136+
#if defined __has_include
137+
#if __has_include (<ConnectionHandlerConfig.h>)
138+
#include <ConnectionHandlerConfig.h>
139+
#endif
140+
#endif
141+
139142
/******************************************************************************
140143
TYPEDEFS
141144
******************************************************************************/

0 commit comments

Comments
 (0)