Fix compile issue if ethernet support disabled.

This commit is contained in:
Johny Mattsson 2021-09-01 14:19:04 +10:00
parent 961d996a63
commit 6f31db5a8a
1 changed files with 3 additions and 0 deletions

View File

@ -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 "module.h"
@ -290,3 +292,4 @@ LROT_BEGIN(eth, NULL, 0)
LROT_END(eth, NULL, 0)
NODEMCU_MODULE(ETH, "eth", eth, NULL);
#endif