From 25026c869edce198ee7063a1b81b86ba38cad955 Mon Sep 17 00:00:00 2001 From: jujihjuji <14168930+jujihjuji@user.noreply.gitee.com> Date: Tue, 16 Jun 2026 11:45:36 +0800 Subject: [PATCH] =?UTF-8?q?update(VK=5FClient):=E6=B7=BB=E5=8A=A0=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=9B=B8=E5=85=B3=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/VK_Client.c | 6 ++++++ applications/VK_Client.h | 1 + 2 files changed, 7 insertions(+) diff --git a/applications/VK_Client.c b/applications/VK_Client.c index ddbf363..59aa7a1 100644 --- a/applications/VK_Client.c +++ b/applications/VK_Client.c @@ -232,12 +232,18 @@ int16_t client_tcp_connect(Cclient_t *client) { 0 != BSP_LTE_SendCmd(cmd_cmd, cmd_str, DEFAULT_ERROR, LTE_CMD_WAIT_LLONG)) { client_tcp_close(client); +#ifdef debug_mode + EC800K_Reset(); + client->error_cnt = 0; + return 0; +#else client->error_cnt++; if (client->error_cnt > 5) { EC800K_Reset(); client->error_cnt = 0; return 0; } +#endif } client->connect_sta = true; client->error_cnt = 0; diff --git a/applications/VK_Client.h b/applications/VK_Client.h index 33ad64a..d171fcf 100644 --- a/applications/VK_Client.h +++ b/applications/VK_Client.h @@ -8,6 +8,7 @@ #include #include "drv_ec800k.h" +//#define debug_mode typedef struct { uint8_t match_stage; uint8_t match_flag;