inject device name for LAN8720 devices

This commit is contained in:
technyon
2023-03-02 20:26:22 +01:00
parent 130fd23235
commit 5681ad537c
3 changed files with 14 additions and 11 deletions

View File

@@ -12,7 +12,8 @@ class EthLan8720Device : public NetworkDevice
public:
EthLan8720Device(const String& hostname,
Preferences* _preferences,
Preferences* preferences,
const std::string& deviceName,
uint8_t phy_addr = ETH_PHY_ADDR,
int power = ETH_PHY_POWER,
int mdc = ETH_PHY_MDC,
@@ -74,6 +75,7 @@ private:
bool _hardwareInitialized = false;
bool _lastConnected = false;
const std::string _deviceName;
uint8_t _phy_addr;
int _power;
int _mdc;