resolve lwip init twice issue

resolve wifi example test fail before lwip is init
pull/4444/head
Yuguo Zou 2017-06-05 19:59:21 +08:00
parent 8232afa53e
commit ef1ddae694
1 changed files with 1 additions and 0 deletions

View File

@ -469,6 +469,7 @@ nsapi_error_t mbed_lwip_emac_init(emac_interface_t *emac)
eth_arch_enable_interrupts();
#endif
netif_inited = true;
return NSAPI_ERROR_OK;
#else
return NSAPI_ERROR_UNSUPPORTED;