Skip to content

Commit 85a6992

Browse files
committed
Guard for CONFIG_ETH_SPI_ETHERNET_W5500
1 parent f4e17cb commit 85a6992

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wled00/wled.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ WLED_GLOBAL int8_t irPin _INIT(IRPIN);
361361

362362
//WLED_GLOBAL byte presetToApply _INIT(0);
363363
#ifndef ESP8266
364-
#if ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 5)
364+
#if defined(CONFIG_ETH_SPI_ETHERNET_W5500) && ESP_IDF_VERSION >= ESP_IDF_VERSION_VAL(4, 4, 5)
365365
WLED_GLOBAL ETHClass2 ETH;
366366
#endif
367367
#endif

0 commit comments

Comments
 (0)