Skip to content

Commit 328bd83

Browse files
committed
Use more detailed define to enable ethernet support
Otherwise we cannot distinguish between LoRa/Ethernet Vision Shield
1 parent 349cee2 commit 328bd83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Arduino_ConnectionHandler.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
#include <WiFiUdp.h>
4949

5050
#define BOARD_HAS_WIFI
51-
#define BOARD_HAS_PORTENTA_VISION_SHIELD
51+
#define BOARD_HAS_PORTENTA_VISION_SHIELD_ETHERNET
5252
#define NETWORK_HARDWARE_ERROR WL_NO_SHIELD
5353
#define NETWORK_IDLE_STATUS WL_IDLE_STATUS
5454
#define NETWORK_CONNECTED WL_CONNECTED
@@ -107,7 +107,7 @@
107107
#define WIFI_FIRMWARE_VERSION_REQUIRED WIFI_FIRMWARE_REQUIRED
108108
#endif
109109

110-
#if defined(BOARD_HAS_PORTENTA_VISION_SHIELD)
110+
#if defined(BOARD_HAS_PORTENTA_VISION_SHIELD_ETHERNET)
111111
#define BOARD_HAS_ETHERNET
112112

113113
#include <Ethernet.h>

0 commit comments

Comments
 (0)