From 8ca15cedc2500a5a796f039ff56ee14787a0be74 Mon Sep 17 00:00:00 2001 From: Tomi Fontanilles Date: Mon, 18 Mar 2024 16:14:28 +0200 Subject: [PATCH] samples: net: cellular_modem: increase the post-restart sleep time A higher delay helps in getting the first post-restart echo packet to be successful. Signed-off-by: Tomi Fontanilles --- samples/net/cellular_modem/src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/net/cellular_modem/src/main.c b/samples/net/cellular_modem/src/main.c index c951ac6bbb2..e02f5d7ead1 100644 --- a/samples/net/cellular_modem/src/main.c +++ b/samples/net/cellular_modem/src/main.c @@ -376,7 +376,7 @@ int main(void) printk("L4 connected\n"); /* Wait a bit to avoid (unsuccessfully) trying to send the first echo packet too quickly. */ - k_sleep(K_SECONDS(1)); + k_sleep(K_SECONDS(5)); ret = sample_echo_packet(&sample_test_dns_addrinfo.ai_addr, sample_test_dns_addrinfo.ai_addrlen, port);