Skip to content

Commit cf3d316

Browse files
authored
fx(pr): Remove call to _delMacAndPhy on MAC creation failure
1 parent 872f317 commit cf3d316

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

libraries/Ethernet/src/ETH.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,6 @@ bool ETHClass::begin(eth_phy_type_t type, int32_t phy_addr, int mdc, int mdio, i
281281
_mac = esp_eth_mac_new_esp32(&mac_config, &eth_mac_config);
282282
if (_mac == NULL) {
283283
log_e("esp_eth_mac_new_esp32 failed");
284-
_delMacAndPhy();
285284
return false;
286285
}
287286

0 commit comments

Comments
 (0)