Merge pull request #9935 from jarvte/lwip_timeout_bringup_link

Increased timeout for lwip waiting netif_is_link_up
pull/10081/head
Cruz Monrreal 2019-03-16 22:54:57 -05:00 committed by GitHub
commit e697d3770d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -647,7 +647,7 @@ nsapi_error_t LWIP::Interface::bringup(bool dhcp, const char *ip, const char *ne
if (!netif_is_link_up(&netif)) {
if (blocking) {
if (osSemaphoreAcquire(linked, 15000) != osOK) {
if (osSemaphoreAcquire(linked, LINK_TIMEOUT * 1000) != osOK) {
if (ppp) {
(void) ppp_lwip_disconnect(hw);
}

View File

@ -58,6 +58,7 @@
#endif
#define DHCP_TIMEOUT 60
#define LINK_TIMEOUT 60
#define PREF_IPV4 1
#define PREF_IPV6 2