暂存一个版本
This commit is contained in:
parent
f4faea4749
commit
ec3e91ac6c
|
@ -2,7 +2,7 @@
|
|||
* @Author: mbw
|
||||
* @Date: 2024-10-09 08:42:14
|
||||
* @LastEditors: mbw && 1600520629@qq.com
|
||||
* @LastEditTime: 2025-01-17 11:22:04
|
||||
* @LastEditTime: 2025-01-17 13:30:24
|
||||
* @FilePath: \JT-DT-YD4N02A_RTT_MRS-NT26K\bsp\src\bsp_nt26k.c
|
||||
* @Description:
|
||||
*
|
||||
|
@ -1503,7 +1503,9 @@ static void Nt26k_Life_Thread_Entry(void *parameter)
|
|||
}
|
||||
else
|
||||
{
|
||||
device->class->device_ops->control(device, AT_DEVICE_RF_CLOSE, RT_NULL);
|
||||
result = -RT_ETIMEOUT;
|
||||
|
||||
goto __exit;
|
||||
}
|
||||
at_delete_resp(resp);
|
||||
|
@ -1518,10 +1520,11 @@ static void Nt26k_Life_Thread_Entry(void *parameter)
|
|||
__exit:
|
||||
if (result != RT_EOK)
|
||||
{
|
||||
LOG_D("重连网络失败,等待10s后重连\n");
|
||||
LOG_D("重连网络失败,等待%d s后重连\n",delay_n * 5);
|
||||
|
||||
rt_thread_mdelay(delay_n * 5000);
|
||||
delay_n++;
|
||||
if (delay_n >= 360)
|
||||
if (delay_n >= 66)//大于3小时的重连都不行,则重启设备
|
||||
{
|
||||
Flash_Set_WorkDuration(work_duration);
|
||||
delay_n = 0;
|
||||
|
|
Loading…
Reference in New Issue