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) {