Skip to content

Commit f9be897

Browse files
committed
AIoTC_Config: enable NetworkConfigurator only if included in user sketch files
1 parent db2abdf commit f9be897

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/AIoTC_Config.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@
2222
#if __has_include (<Notecard.h>)
2323
#define HAS_NOTECARD
2424
#endif
25+
26+
#if __has_include (<ANetworkConfigurator_Config.h>)
27+
#define NETWORK_CONFIGURATOR_ENABLED (1)
28+
#else
29+
#define NETWORK_CONFIGURATOR_ENABLED (0)
30+
#endif
31+
2532
#endif
2633

2734
#include <ArduinoECCX08Config.h>
@@ -148,12 +155,6 @@
148155
#define BOARD_STM32H7
149156
#endif
150157

151-
#if defined(ARDUINO_PORTENTA_H7_M7) || defined(ARDUINO_NICLA_VISION) || defined(ARDUINO_OPTA) || defined(ARDUINO_GIGA) \
152-
|| defined(ARDUINO_UNOR4_WIFI) || defined(ARDUINO_PORTENTA_C33)
153-
#define NETWORK_CONFIGURATOR_ENABLED (1)
154-
#else
155-
#define NETWORK_CONFIGURATOR_ENABLED (0)
156-
#endif
157158

158159
/******************************************************************************
159160
* CONSTANTS

0 commit comments

Comments
 (0)