mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
lwip: Fixed ping assert reset when ping interval is 0
This commit is contained in:
parent
6bd7cadc7b
commit
cffcac6106
@ -170,8 +170,10 @@ static void esp_ping_thread(void *args)
|
||||
ep->on_ping_timeout((esp_ping_handle_t)ep, ep->cb_args);
|
||||
}
|
||||
}
|
||||
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) {
|
||||
ep->on_ping_end((esp_ping_handle_t)ep, ep->cb_args);
|
||||
|
Loading…
Reference in New Issue
Block a user