Remove EMAC related code for devices that don't have one #2333
+23
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
It does not make sense to be able to configure Ethernet via the internal EMAC for targets other than the "original" ESP32, as they don't have one! Devices from the ESP32-C or ESP32-S series only support Ethernet via an external MAC, like the W5500. Therefore, the user should not be able to configure it and neither should see it in the pin configuration on the "Device-Manager" page of the OpenDTU web interface.
Furthermore, the usage of
ETH_PHY_LAN8720
in thePinMappingClass
caused a compilation error when using Arduino core v3.0, because with v3.0 the definition only exists for targets where internal EMAC support is configured (seeETH.h
).