Skip to content

Commit

Permalink
more explicit use of ArduinoCore-API
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
TiboDevC committed May 8, 2024
1 parent 06184eb commit eac3331
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/WiFi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions src/WiFiClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down
2 changes: 1 addition & 1 deletion src/WiFiServer.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ extern "C" {
#include "utility/wl_definitions.h"
}

#include "Server.h"
#include "api/Server.h"

class WiFiClient;

Expand Down
2 changes: 1 addition & 1 deletion src/WiFiUdp.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#ifndef wifiudp_h
#define wifiudp_h

#include <Udp.h>
#include <api/Udp.h>

#define UDP_TX_PACKET_MAX_SIZE 24

Expand Down
2 changes: 1 addition & 1 deletion src/utility/wifi_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include <inttypes.h>
#include "utility/wifi_spi.h"
#include "IPAddress.h"
#include "api/IPAddress.h"
#include "WiFiUdp.h"
#include "WiFiClient.h"

Expand Down

0 comments on commit eac3331

Please sign in to comment.