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;