Skip to content

Commit 813a735

Browse files
committed
Fixes for boards without RMII
1 parent d736a74 commit 813a735

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

wled00/wled.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)