We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78df734 + c4c204c commit e274dd4Copy full SHA for e274dd4
libraries/SocketWrapper/Ethernet.h
@@ -46,9 +46,9 @@ class EthernetClass: public NetworkInterface
46
EthernetHardwareStatus hardwareStatus() {
47
const struct device *const dev = DEVICE_DT_GET(DT_COMPAT_GET_ANY_STATUS_OKAY(ethernet_phy));
48
if (device_is_ready(dev)) {
49
- for (int i = 1; i < 3; i++) {
+ for (int i = 1; i < 4; i++) {
50
auto _if = net_if_get_by_index(i);
51
- if (!net_eth_type_is_wifi(_if)) {
+ if (_if && !net_eth_type_is_wifi(_if)) {
52
netif = _if;
53
break;
54
}
0 commit comments