mirror of https://github.com/ARMmbed/mbed-os.git
EthernetInterface: ctor uses connect() method
parent
f8ad018e14
commit
1b797bbd16
|
@ -22,11 +22,7 @@
|
||||||
EthernetInterface::EthernetInterface()
|
EthernetInterface::EthernetInterface()
|
||||||
: _dhcp(true), _ip_address(), _netmask(), _gateway()
|
: _dhcp(true), _ip_address(), _netmask(), _gateway()
|
||||||
{
|
{
|
||||||
#if DEVICE_EMAC
|
connect();
|
||||||
return lwip_bringup(NULL);
|
|
||||||
#else /* DEVICE_EMAC */
|
|
||||||
return lwip_bringup();
|
|
||||||
#endif /* DEVICE_EMAC */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int EthernetInterface::set_network(const char *ip_address, const char *netmask, const char *gateway)
|
int EthernetInterface::set_network(const char *ip_address, const char *netmask, const char *gateway)
|
||||||
|
|
Loading…
Reference in New Issue