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.
1 parent f542aea commit c4c204cCopy full SHA for c4c204c
libraries/SocketWrapper/Ethernet.h
@@ -48,7 +48,7 @@ class EthernetClass: public NetworkInterface
48
if (device_is_ready(dev)) {
49
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