File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -1172,6 +1172,7 @@ bool WLED::initEthernet()
11721172 #endif
11731173 }
11741174 #else
1175+ #ifdef CONFIG_ETH_PHY_INTERFACE_RMII
11751176 // Ethernet initialization should only succeed once -- else reboot required
11761177 managed_pin_type pinsToAllocate[10 ] = {
11771178 // first six pins are non-configurable
@@ -1210,7 +1211,7 @@ bool WLED::initEthernet()
12101211 DEBUG_PRINTLN (F (" initE: Failed to allocate ethernet pins" ));
12111212 return false ;
12121213 }
1213-
1214+
12141215 if (!ETH.begin (
12151216 (uint8_t )es.eth_address ,
12161217 (int )es.eth_power ,
@@ -1226,6 +1227,9 @@ bool WLED::initEthernet()
12261227 }
12271228 return false ;
12281229 }
1230+ #else
1231+ return false ;
1232+ #endif
12291233 #endif
12301234 successfullyConfiguredEthernet = true ;
12311235 USER_PRINTLN (F (" initC: *** Ethernet successfully configured! ***" )); // WLEDMM
You can’t perform that action at this time.
0 commit comments