From ee33a65fe13740dee43cbf830ed608e721f8a2ba Mon Sep 17 00:00:00 2001 From: jujihjuji <14168930+jujihjuji@user.noreply.gitee.com> Date: Tue, 16 Jun 2026 11:19:40 +0800 Subject: [PATCH] =?UTF-8?q?update(VK=5FClient):=E6=95=99=E5=9F=B9=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E9=87=8D=E5=90=AF=E7=94=A8=E8=B6=85=E6=97=B6=E6=96=AD?= =?UTF-8?q?=E8=BF=9E(6s)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/VK_Client.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/applications/VK_Client.c b/applications/VK_Client.c index a5f1482..6754ca2 100644 --- a/applications/VK_Client.c +++ b/applications/VK_Client.c @@ -292,11 +292,12 @@ int16_t client_yield(CLte_dev_t *pLte_dev) { while (1) { if (pLte_dev->client1->connect_sta == true) { rt_err_t ret = rt_sem_take(pLte_dev->com_dev_rx_sem, 1000); - // if (rt_tick_get() - last_rx_tick > RT_TICK_PER_SECOND * 10) { - // rt_kprintf("timeout!!! reconnect.\n"); - // hw_printf("timeout!!! reconnect.\n"); - // pLte_dev->client1->connect_sta = false; - // } +#ifdef EDU_TRAINING + if (rt_tick_get() - last_rx_tick > RT_TICK_PER_SECOND * 6) { + LOG_I("timeout!!! reconnect.\n"); + pLte_dev->client1->connect_sta = false; + } +#endif if (RT_EOK == ret) { rt_ssize_t len = 0; while (1) {