mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
ping: do not clear IP address with ping_stop at the init
commit 4e6dd9 "ping: add stop function", was corrected and wrongly added stop function after IP address set up. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
This commit is contained in:
parent
dad8c4c72a
commit
de6b0a35f8
@ -401,11 +401,11 @@ ping_raw_stop(void)
|
||||
void
|
||||
ping_init(const ip_addr_t* ping_addr)
|
||||
{
|
||||
ping_stop();
|
||||
|
||||
LWIP_ASSERT("ping_target != NULL", ping_target != NULL);
|
||||
ping_target = ping_addr;
|
||||
|
||||
ping_stop();
|
||||
|
||||
#if PING_USE_SOCKETS
|
||||
sys_thread_new("ping_thread", ping_thread, NULL, DEFAULT_THREAD_STACKSIZE, DEFAULT_THREAD_PRIO);
|
||||
#else /* PING_USE_SOCKETS */
|
||||
|
Loading…
Reference in New Issue
Block a user