diff --git a/components/modules/eth.c b/components/modules/eth.c index d9f0ff49..ac11f9fa 100644 --- a/components/modules/eth.c +++ b/components/modules/eth.c @@ -1,3 +1,5 @@ +// When this isn't enabled, the esp_eth.h header isn't available +#ifdef CONFIG_ETH_ENABLED #include #include "module.h" @@ -290,3 +292,4 @@ LROT_BEGIN(eth, NULL, 0) LROT_END(eth, NULL, 0) NODEMCU_MODULE(ETH, "eth", eth, NULL); +#endif