Skip to content

Commit 1026b98

Browse files
committed
Simplify ethernet support for portenta based boards
1 parent a3fee7e commit 1026b98

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

Diff for: src/Arduino_ConnectionHandler.h

+3-7
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,17 @@
4646
#if defined(ARDUINO_PORTENTA_H7_M7)
4747
#include <WiFi.h>
4848
#include <WiFiUdp.h>
49+
#include <Ethernet.h>
50+
#include <PortentaEthernet.h>
4951

5052
#define BOARD_HAS_WIFI
53+
#define BOARD_HAS_ETHERNET
5154
#define BOARD_HAS_PORTENTA_VISION_SHIELD_ETHERNET
5255
#define NETWORK_HARDWARE_ERROR WL_NO_SHIELD
5356
#define NETWORK_IDLE_STATUS WL_IDLE_STATUS
5457
#define NETWORK_CONNECTED WL_CONNECTED
5558
#endif
5659

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-
6460
#if defined(ARDUINO_NICLA_VISION)
6561
#include <WiFi.h>
6662
#include <WiFiUdp.h>

0 commit comments

Comments
 (0)