lwip - Fixed lwip connected state after bringup with static ips

Thanks to @YixiaoLi for noting this was incorrect
pull/3585/head
Christopher Haster 2017-01-04 12:10:47 -06:00 committed by Anna Bridge
parent cbed2604e6
commit 3e66e4696a
1 changed files with 1 additions and 1 deletions

View File

@ -495,7 +495,6 @@ nsapi_error_t mbed_lwip_bringup(bool dhcp, const char *ip, const char *netmask,
if (ret == SYS_ARCH_TIMEOUT) {
return NSAPI_ERROR_DHCP_FAILURE;
}
lwip_connected = true;
}
#if ADDR_TIMEOUT
@ -510,6 +509,7 @@ nsapi_error_t mbed_lwip_bringup(bool dhcp, const char *ip, const char *netmask,
add_dns_addr(&lwip_netif);
#endif
lwip_connected = true;
return 0;
}