Skip to content

Commit

Permalink
Allow def undef configurations from external libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Aug 20, 2024
1 parent bc9691b commit 2dbaa65
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/ConnectionHandlerDefinitions.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@

#if defined(ARDUINO_SAMD_MKRWIFI1010) || defined(ARDUINO_SAMD_NANO_33_IOT) || \
defined(ARDUINO_AVR_UNO_WIFI_REV2) || defined (ARDUINO_NANO_RP2040_CONNECT)

#define BOARD_HAS_WIFI
#define NETWORK_HARDWARE_ERROR WL_NO_MODULE
#define NETWORK_IDLE_STATUS WL_IDLE_STATUS
Expand Down Expand Up @@ -79,7 +78,6 @@
#endif

#if defined(ARDUINO_GIGA)

#define BOARD_HAS_WIFI
#define NETWORK_HARDWARE_ERROR WL_NO_SHIELD
#define NETWORK_IDLE_STATUS WL_IDLE_STATUS
Expand All @@ -105,7 +103,6 @@
#endif

#if defined(ARDUINO_ARCH_ESP8266)

#define BOARD_HAS_WIFI
#define NETWORK_HARDWARE_ERROR WL_NO_SHIELD
#define NETWORK_IDLE_STATUS WL_IDLE_STATUS
Expand Down Expand Up @@ -136,6 +133,12 @@
#define NETWORK_HARDWARE_ERROR
#endif

#if defined __has_include
#if __has_include (<ConnectionHandlerConfig.h>)
#include <ConnectionHandlerConfig.h>
#endif
#endif

/******************************************************************************
TYPEDEFS
******************************************************************************/
Expand Down

0 comments on commit 2dbaa65

Please sign in to comment.