Skip to content

Commit f801b98

Browse files
authored
Update ETH.cpp
1 parent e9b3f26 commit f801b98

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libraries/Ethernet/src/ETH.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@
1919
*/
2020

2121
// Disable the automatic pin remapping of the API calls in this file
22+
23+
#include "sdkconfig.h"
24+
#if CONFIG_ETH_ENABLED
25+
2226
#define ARDUINO_CORE_BUILD
2327

2428
#include "ETH.h"
@@ -1056,3 +1060,5 @@ size_t ETHClass::printDriverInfo(Print &out) const {
10561060
}
10571061

10581062
ETHClass ETH;
1063+
1064+
#endif /* CONFIG_ETH_ENABLED */

0 commit comments

Comments
 (0)