File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ managed_pin_type esp32_nonconfigurable_ethernet_pins[6] = {
2222 { 26 , false }, // RMII EMAC RXD1 == Second bit of received data
2323 { 27 , true }, // RMII EMAC CRS_DV == Carrier Sense and RX Data Valid
2424};
25+ #else
26+ managed_pin_type esp32_nonconfigurable_ethernet_pins[WLED_ETH_RSVD_PINS_COUNT] = {};
2527#endif
2628
2729#ifndef CONFIG_ETH_SPI_ETHERNET_W5500
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ typedef struct EthernetSettings {
6262 int eth_clk_mode ;
6363} ethernet_settings ;
6464#define WLED_ETH_RSVD_PINS_COUNT 0
65- extern managed_pin_type esp32_nonconfigurable_ethernet_pins [] = {} ;
65+ extern managed_pin_type esp32_nonconfigurable_ethernet_pins [WLED_ETH_RSVD_PINS_COUNT ] ;
6666#endif
6767
6868extern const ethernet_settings ethernetBoards [];
You can’t perform that action at this time.
0 commit comments