File tree Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Expand file tree Collapse file tree 2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change 33#define SSID_MAX_LENGTH 32
44
55int arduino::EthernetClass::begin (uint8_t *mac, unsigned long timeout, unsigned long responseTimeout) {
6- if (eth_if == nullptr ) {
7- // Q: What is the callback for?
8- _initializerCallback ();
9- if (eth_if == nullptr ) return 0 ;
10- }
116 eth_if->set_dhcp (true );
127 return _begin (mac, timeout, responseTimeout);
138}
Original file line number Diff line number Diff line change @@ -62,9 +62,6 @@ class EthernetClass : public MbedSocketClass {
6262 : eth_if(_if){};
6363 EthernetClass (){};
6464
65- EthernetClass (voidPrtFuncPtr _cb)
66- : _initializerCallback(_cb){};
67-
6865 int begin (uint8_t *mac = nullptr , unsigned long timeout = 60000 , unsigned long responseTimeout = 4000 );
6966 EthernetLinkStatus linkStatus ();
7067 EthernetHardwareStatus hardwareStatus ();
@@ -121,7 +118,6 @@ class EthernetClass : public MbedSocketClass {
121118 volatile EthernetLinkStatus _currentNetworkStatus = Unknown;
122119 EthernetInterface net;
123120 EthernetInterface *eth_if = &net;
124- voidPrtFuncPtr _initializerCallback;
125121 arduino::IPAddress ipAddressFromSocketAddress (SocketAddress socketAddress);
126122};
127123
You can’t perform that action at this time.
0 commit comments