lwip: Fixed ping assert reset when ping interval is 0

pull/6491/head
Chen Wu 2021-01-26 10:20:58 +08:00 zatwierdzone przez bot
rodzic 9a5bd86d54
commit 8207f6ac32
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -180,7 +180,9 @@ static void esp_ping_thread(void *args)
ep->on_ping_timeout((esp_ping_handle_t)ep, ep->cb_args);
}
}
vTaskDelayUntil(&last_wake, pdMS_TO_TICKS(ep->interval_ms)); // to get a more accurate delay
if (pdMS_TO_TICKS(ep->interval_ms)) {
vTaskDelayUntil(&last_wake, pdMS_TO_TICKS(ep->interval_ms)); // to get a more accurate delay
}
}
/* batch of ping operations finished */
if (ep->on_ping_end) {