Skip to content

Commit ec9326e

Browse files
committed
Ethernet: compile only if enabled in dts
1 parent 30f1330 commit ec9326e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/SocketWrapper/Ethernet.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
#include <zephyr/net/ethernet.h>
44

5+
#if DT_HAS_COMPAT_STATUS_OKAY(ethernet_phy)
6+
57
enum EthernetLinkStatus {
68
Unknown,
79
LinkON,
@@ -58,3 +60,5 @@ class EthernetClass: public NetworkInterface
5860
}
5961
};
6062
extern EthernetClass Ethernet;
63+
64+
#endif

0 commit comments

Comments
 (0)