From 2dbaa65878b692da0cc55b22cf0fdb782d257be4 Mon Sep 17 00:00:00 2001 From: pennam Date: Tue, 20 Aug 2024 17:27:10 +0200 Subject: [PATCH] Allow def undef configurations from external libraries --- src/ConnectionHandlerDefinitions.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ConnectionHandlerDefinitions.h b/src/ConnectionHandlerDefinitions.h index 3fdde16..9d6186f 100644 --- a/src/ConnectionHandlerDefinitions.h +++ b/src/ConnectionHandlerDefinitions.h @@ -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 @@ -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 @@ -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 @@ -136,6 +133,12 @@ #define NETWORK_HARDWARE_ERROR #endif +#if defined __has_include + #if __has_include () + #include + #endif +#endif + /****************************************************************************** TYPEDEFS ******************************************************************************/