From 1a7ca4b9b82a4f46883bf8980f13f829cb2c1594 Mon Sep 17 00:00:00 2001 From: Ubi de Feo Date: Mon, 3 Jan 2022 08:28:20 +0100 Subject: [PATCH] added definition of generic ESP32 to ARCH test 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` --- src/AIoTC_Config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AIoTC_Config.h b/src/AIoTC_Config.h index 9ceb2ac62..26be67d51 100644 --- a/src/AIoTC_Config.h +++ b/src/AIoTC_Config.h @@ -131,7 +131,7 @@ #define HAS_LORA #endif -#if defined(ARDUINO_ESP8266_ESP12) || defined(ARDUINO_ARCH_ESP32) || defined(ESP8266) +#if defined(ARDUINO_ESP8266_ESP12) || defined(ARDUINO_ARCH_ESP32) || defined(ESP8266) || defined(ESP32) #define BOARD_ESP #define HAS_TCP #endif