diff --git a/libraries/Ethernet/src/Ethernet.cpp b/libraries/Ethernet/src/Ethernet.cpp index 2e0f1a94f..d6c92d635 100644 --- a/libraries/Ethernet/src/Ethernet.cpp +++ b/libraries/Ethernet/src/Ethernet.cpp @@ -3,11 +3,6 @@ #define SSID_MAX_LENGTH 32 int arduino::EthernetClass::begin(uint8_t *mac, unsigned long timeout, unsigned long responseTimeout) { - if (eth_if == nullptr) { - //Q: What is the callback for? - _initializerCallback(); - if (eth_if == nullptr) return 0; - } eth_if->set_dhcp(true); return _begin(mac, timeout, responseTimeout); } diff --git a/libraries/Ethernet/src/Ethernet.h b/libraries/Ethernet/src/Ethernet.h index 2fc2ef240..b1919e481 100644 --- a/libraries/Ethernet/src/Ethernet.h +++ b/libraries/Ethernet/src/Ethernet.h @@ -62,9 +62,6 @@ class EthernetClass : public MbedSocketClass { : eth_if(_if){}; EthernetClass(){}; - EthernetClass(voidPrtFuncPtr _cb) - : _initializerCallback(_cb){}; - int begin(uint8_t *mac = nullptr, unsigned long timeout = 60000, unsigned long responseTimeout = 4000); EthernetLinkStatus linkStatus(); EthernetHardwareStatus hardwareStatus(); @@ -121,7 +118,6 @@ class EthernetClass : public MbedSocketClass { volatile EthernetLinkStatus _currentNetworkStatus = Unknown; EthernetInterface net; EthernetInterface *eth_if = &net; - voidPrtFuncPtr _initializerCallback; arduino::IPAddress ipAddressFromSocketAddress(SocketAddress socketAddress); };
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: