fix(dhcp): Fix dhcp renew fail in t1 and will renew ip in t2 every 1s util renew successful.

This commit is contained in:
yuanjm
2020-09-18 11:12:16 +08:00
parent f13c986a20
commit de3e942f4b
+5
View File
@@ -542,6 +542,11 @@ dhcp_timeout(struct netif *netif)
dhcp_discover(netif);
}
}
#if ESP_DHCP
else if (dhcp->state == DHCP_STATE_REBINDING) {
dhcp->t2_rebind_time = 1;
}
#endif
}
/**