Skip to content

Commit 1465777

Browse files
committed
lwip - Fixed lwip connected state after bringup with static ips
Thanks to @YixiaoLi for noting this was incorrect
1 parent e7361eb commit 1465777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

features/FEATURE_LWIP/lwip-interface/lwip_stack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,6 @@ nsapi_error_t mbed_lwip_bringup(bool dhcp, const char *ip, const char *netmask,
495495
if (ret == SYS_ARCH_TIMEOUT) {
496496
return NSAPI_ERROR_DHCP_FAILURE;
497497
}
498-
lwip_connected = true;
499498
}
500499

501500
#if ADDR_TIMEOUT
@@ -510,6 +509,7 @@ nsapi_error_t mbed_lwip_bringup(bool dhcp, const char *ip, const char *netmask,
510509
add_dns_addr(&lwip_netif);
511510
#endif
512511

512+
lwip_connected = true;
513513
return 0;
514514
}
515515

0 commit comments

Comments
 (0)