Fix compile issue if ethernet support disabled.
This commit is contained in:
parent
961d996a63
commit
6f31db5a8a
|
@ -1,3 +1,5 @@
|
||||||
|
// When this isn't enabled, the esp_eth.h header isn't available
|
||||||
|
#ifdef CONFIG_ETH_ENABLED
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#include "module.h"
|
#include "module.h"
|
||||||
|
@ -290,3 +292,4 @@ LROT_BEGIN(eth, NULL, 0)
|
||||||
LROT_END(eth, NULL, 0)
|
LROT_END(eth, NULL, 0)
|
||||||
|
|
||||||
NODEMCU_MODULE(ETH, "eth", eth, NULL);
|
NODEMCU_MODULE(ETH, "eth", eth, NULL);
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue