From eac3331e81c638c69f8eb2438165153b4ce163b9 Mon Sep 17 00:00:00 2001 From: TiboDevC Date: Wed, 8 May 2024 11:19:19 +0200 Subject: [PATCH] more explicit use of ArduinoCore-API Those files are located under the "api" directory of `ArduinoCore-API` repository https://github.com/arduino/ArduinoCore-API Those same files are also located in the ArduinoCore-samd repository https://github.com/arduino/ArduinoCore-samd and conflicting. So, to make it more explicit, specify the `api` directory. --- src/WiFi.h | 2 +- src/WiFiClient.h | 6 +++--- src/WiFiServer.h | 2 +- src/WiFiUdp.h | 2 +- src/utility/wifi_drv.h | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/WiFi.h b/src/WiFi.h index b4518df7..7205c691 100644 --- a/src/WiFi.h +++ b/src/WiFi.h @@ -31,7 +31,7 @@ extern "C" { #include "utility/wl_types.h" } -#include "IPAddress.h" +#include "api/IPAddress.h" #include "WiFiClient.h" #include "WiFiSSLClient.h" #include "WiFiServer.h" diff --git a/src/WiFiClient.h b/src/WiFiClient.h index 1ed65601..aa90e0a9 100644 --- a/src/WiFiClient.h +++ b/src/WiFiClient.h @@ -21,9 +21,9 @@ #ifndef wificlient_h #define wificlient_h #include "Arduino.h" -#include "Print.h" -#include "Client.h" -#include "IPAddress.h" +#include "api/Print.h" +#include "api/Client.h" +#include "api/IPAddress.h" class WiFiClient : public Client { diff --git a/src/WiFiServer.h b/src/WiFiServer.h index b01fa5e7..691da3df 100644 --- a/src/WiFiServer.h +++ b/src/WiFiServer.h @@ -25,7 +25,7 @@ extern "C" { #include "utility/wl_definitions.h" } -#include "Server.h" +#include "api/Server.h" class WiFiClient; diff --git a/src/WiFiUdp.h b/src/WiFiUdp.h index 922502d1..31ca7a08 100644 --- a/src/WiFiUdp.h +++ b/src/WiFiUdp.h @@ -21,7 +21,7 @@ #ifndef wifiudp_h #define wifiudp_h -#include +#include #define UDP_TX_PACKET_MAX_SIZE 24 diff --git a/src/utility/wifi_drv.h b/src/utility/wifi_drv.h index c20db43b..3d6c9ed9 100644 --- a/src/utility/wifi_drv.h +++ b/src/utility/wifi_drv.h @@ -23,7 +23,7 @@ #include #include "utility/wifi_spi.h" -#include "IPAddress.h" +#include "api/IPAddress.h" #include "WiFiUdp.h" #include "WiFiClient.h"