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

This commit is contained in:
xueyunfei
2020-10-26 16:21:29 +08:00
parent 65b6b27a40
commit 95710c4276
+5
View File
@@ -540,6 +540,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
}
/**