Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf542aea

Browse files
committed
Ethernet: fix interface discovery on portenta c33
iface 1 and 2 are wifi interfaces, iface 3 is the ethernet one.
1 parent78df734 commitf542aea

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
EthernetHardwareStatushardwareStatus() {
4747
conststructdevice *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)

[8]ページ先頭

©2009-2025 Movatter.jp