mirror of https://github.com/ARMmbed/mbed-os.git
commit
c08864b588
|
|
@ -476,8 +476,13 @@ nsapi_error_t mbed_lwip_emac_init(emac_interface_t *emac)
|
|||
// Backwards compatibility with people using DEVICE_EMAC
|
||||
nsapi_error_t mbed_lwip_init(emac_interface_t *emac)
|
||||
{
|
||||
nsapi_error_t ret;
|
||||
mbed_lwip_core_init();
|
||||
return mbed_lwip_emac_init(emac);
|
||||
ret = mbed_lwip_emac_init(emac);
|
||||
if (ret == NSAPI_ERROR_OK) {
|
||||
netif_inited = true;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
// Backwards compatibility with people using DEVICE_EMAC
|
||||
|
|
|
|||
Loading…
Reference in New Issue