Skip to content

Commit f542aea

Browse files
committed
Ethernet: fix interface discovery on portenta c33
iface 1 and 2 are wifi interfaces, iface 3 is the ethernet one.
1 parent 78df734 commit f542aea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/SocketWrapper/Ethernet.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class EthernetClass: public NetworkInterface
4646
EthernetHardwareStatus hardwareStatus() {
4747
const struct device *const dev = DEVICE_DT_GET(DT_COMPAT_GET_ANY_STATUS_OKAY(ethernet_phy));
4848
if (device_is_ready(dev)) {
49-
for (int i = 1; i < 3; i++) {
49+
for (int i = 1; i < 4; i++) {
5050
auto _if = net_if_get_by_index(i);
5151
if (!net_eth_type_is_wifi(_if)) {
5252
netif = _if;

0 commit comments

Comments
 (0)