Skip to content

Commit 9b74bb6

Browse files
committed
Add missing include file <PortentaEthernet.h>
1 parent 328bd83 commit 9b74bb6

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/Arduino_ConnectionHandler.h

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@
5454
#define NETWORK_CONNECTED WL_CONNECTED
5555
#endif
5656

57+
#if defined(BOARD_HAS_PORTENTA_VISION_SHIELD_ETHERNET)
58+
#include <Ethernet.h>
59+
#include <PortentaEthernet.h>
60+
61+
#define BOARD_HAS_ETHERNET
62+
#endif
63+
5764
#if defined(ARDUINO_NICLA_VISION)
5865
#include <WiFi.h>
5966
#include <WiFiUdp.h>
@@ -107,12 +114,6 @@
107114
#define WIFI_FIRMWARE_VERSION_REQUIRED WIFI_FIRMWARE_REQUIRED
108115
#endif
109116

110-
#if defined(BOARD_HAS_PORTENTA_VISION_SHIELD_ETHERNET)
111-
#define BOARD_HAS_ETHERNET
112-
113-
#include <Ethernet.h>
114-
#endif
115-
116117
/******************************************************************************
117118
INCLUDES
118119
******************************************************************************/

0 commit comments

Comments
 (0)