mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-29 18:27:20 +02:00
Start lost ip timer when station is connected even regardless of
never got ip before.
This commit is contained in:
@ -951,7 +951,7 @@ static esp_err_t tcpip_adapter_start_ip_lost_timer(tcpip_adapter_if_t tcpip_if)
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
if ( netif && (CONFIG_IP_LOST_TIMER_INTERVAL > 0) && !ip4_addr_isany_val(ip_info_old->ip)) {
|
||||
if (netif && (CONFIG_IP_LOST_TIMER_INTERVAL > 0)) {
|
||||
esp_ip_lost_timer[tcpip_if].timer_running = true;
|
||||
sys_timeout(CONFIG_IP_LOST_TIMER_INTERVAL*1000, tcpip_adapter_ip_lost_timer, (void*)tcpip_if);
|
||||
ESP_LOGD(TAG, "if%d start ip lost tmr: interval=%d", tcpip_if, CONFIG_IP_LOST_TIMER_INTERVAL);
|
||||
|
Reference in New Issue
Block a user