Skip to content

Commit abc196b

Browse files
committed
Remove initCallback
1 parent 0108ded commit abc196b

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

Diff for: libraries/Ethernet/src/Ethernet.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
#define SSID_MAX_LENGTH 32
44

55
int 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
}

Diff for: libraries/Ethernet/src/Ethernet.h

-4
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)