File tree 2 files changed +0
-9
lines changed
2 files changed +0
-9
lines changed Original file line number Diff line number Diff line change 3
3
#define SSID_MAX_LENGTH 32
4
4
5
5
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
- }
11
6
eth_if->set_dhcp (true );
12
7
return _begin (mac, timeout, responseTimeout);
13
8
}
Original file line number Diff line number Diff line change @@ -62,9 +62,6 @@ class EthernetClass : public MbedSocketClass {
62
62
: eth_if(_if){};
63
63
EthernetClass (){};
64
64
65
- EthernetClass (voidPrtFuncPtr _cb)
66
- : _initializerCallback(_cb){};
67
-
68
65
int begin (uint8_t *mac = nullptr , unsigned long timeout = 60000 , unsigned long responseTimeout = 4000 );
69
66
EthernetLinkStatus linkStatus ();
70
67
EthernetHardwareStatus hardwareStatus ();
@@ -121,7 +118,6 @@ class EthernetClass : public MbedSocketClass {
121
118
volatile EthernetLinkStatus _currentNetworkStatus = Unknown;
122
119
EthernetInterface net;
123
120
EthernetInterface *eth_if = &net;
124
- voidPrtFuncPtr _initializerCallback;
125
121
arduino::IPAddress ipAddressFromSocketAddress (SocketAddress socketAddress);
126
122
};
127
123
You can’t perform that action at this time.
0 commit comments