From 0681b8bbe42712b13a964c4a375712f5b434ceeb Mon Sep 17 00:00:00 2001 From: xiao Date: Wed, 29 Apr 2026 04:55:16 +0800 Subject: [PATCH] fix: set tcp client reconnect interval to three seconds --- App/tcp_client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/App/tcp_client.c b/App/tcp_client.c index db1c34b..893ccde 100644 --- a/App/tcp_client.c +++ b/App/tcp_client.c @@ -15,6 +15,7 @@ #include "route_msg.h" #define TCP_CLIENT_CONNECT_TIMEOUT_MS 500 +#define TCP_CLIENT_RECONNECT_INTERVAL_MS 3000u #define TCP_CLIENT_STOP_POLL_MS 50u static BaseType_t tcp_client_stop_requested(void) @@ -162,7 +163,7 @@ static void tcp_client_task(uint8_t link_index) continue; } - delay_ms = (cfg->reconnect_interval_ms == 0u) ? 3000u : cfg->reconnect_interval_ms; + delay_ms = TCP_CLIENT_RECONNECT_INTERVAL_MS; if (first_connect_deferred != 0u) { first_connect_deferred = 0u;