Skip to content

Commit cb71b92

Browse files
authored
added definition of generic ESP32 to ARCH test (#294)
Some platforms do not define `ARDUINO_ARCH_ESP32` in favour of their own (see InkPlate's `ARCH_ARDUINO_INKPLATE). This will cause compilation to fail for those devices. Since every `ESP32` core defines `ESP32`, this has been added to the ARCH test in order to define `BOARD_ESP`
1 parent 97a98cb commit cb71b92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AIoTC_Config.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
#define HAS_LORA
132132
#endif
133133

134-
#if defined(ARDUINO_ESP8266_ESP12) || defined(ARDUINO_ARCH_ESP32) || defined(ESP8266)
134+
#if defined(ARDUINO_ESP8266_ESP12) || defined(ARDUINO_ARCH_ESP32) || defined(ESP8266) || defined(ESP32)
135135
#define BOARD_ESP
136136
#define HAS_TCP
137137
#endif

0 commit comments

Comments
 (0)