EthernetInterface: ctor uses connect() method

pull/3975/head
Martin Kojtal 2016-09-29 14:38:45 +01:00
parent f8ad018e14
commit 1b797bbd16
1 changed files with 1 additions and 5 deletions

View File

@ -22,11 +22,7 @@
EthernetInterface::EthernetInterface()
: _dhcp(true), _ip_address(), _netmask(), _gateway()
{
#if DEVICE_EMAC
return lwip_bringup(NULL);
#else /* DEVICE_EMAC */
return lwip_bringup();
#endif /* DEVICE_EMAC */
connect();
}
int EthernetInterface::set_network(const char *ip_address, const char *netmask, const char *gateway)