File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
features/FEATURE_LWIP/lwip-interface Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -469,7 +469,6 @@ nsapi_error_t mbed_lwip_emac_init(emac_interface_t *emac)
469
469
eth_arch_enable_interrupts ();
470
470
#endif
471
471
472
- netif_inited = true;
473
472
return NSAPI_ERROR_OK ;
474
473
#else
475
474
return NSAPI_ERROR_UNSUPPORTED ;
@@ -479,8 +478,13 @@ nsapi_error_t mbed_lwip_emac_init(emac_interface_t *emac)
479
478
// Backwards compatibility with people using DEVICE_EMAC
480
479
nsapi_error_t mbed_lwip_init (emac_interface_t * emac )
481
480
{
481
+ nsapi_error_t ret ;
482
482
mbed_lwip_core_init ();
483
- return mbed_lwip_emac_init (emac );
483
+ ret = mbed_lwip_emac_init (emac );
484
+ if (ret == NSAPI_ERROR_OK ) {
485
+ netif_inited = true;
486
+ }
487
+ return ret ;
484
488
}
485
489
486
490
// Backwards compatibility with people using DEVICE_EMAC
You can’t perform that action at this time.
0 commit comments