This commit is contained in:
parent
fb48848c70
commit
210252925f
|
@ -2,7 +2,7 @@
|
||||||
* @Author: mbw
|
* @Author: mbw
|
||||||
* @Date: 2024-10-09 08:42:14
|
* @Date: 2024-10-09 08:42:14
|
||||||
* @LastEditors: mbw && 1600520629@qq.com
|
* @LastEditors: mbw && 1600520629@qq.com
|
||||||
* @LastEditTime: 2025-02-08 21:07:48
|
* @LastEditTime: 2025-02-08 21:11:31
|
||||||
* @FilePath: \JT-DT-YD4N02A_RTT_MRS-NT26K\bsp\src\bsp_nt26k.c
|
* @FilePath: \JT-DT-YD4N02A_RTT_MRS-NT26K\bsp\src\bsp_nt26k.c
|
||||||
* @Description:
|
* @Description:
|
||||||
*
|
*
|
||||||
|
@ -1304,14 +1304,14 @@ static void Nt26k_Send_Thread_Entry(void *param)
|
||||||
if (result != RT_EOK)
|
if (result != RT_EOK)
|
||||||
{
|
{
|
||||||
power_on_send_flag = 0;
|
power_on_send_flag = 0;
|
||||||
rt_timer_start(nt26k_error_timer); // 启动重连定时器, 3min一次,直到发送成功
|
rt_timer_start(nt26k_error_timer); // 启动重连定时器, 1min一次,直到发送成功
|
||||||
LOG_E("nt26k send data failed result = [%d]\n", result);
|
LOG_E("nt26k send data failed result = [%d]\n", result);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
rt_timer_start(nt26k_timer); // 当上电心跳包发送成功时, 开始心跳包周期发送
|
|
||||||
rt_timer_start(nt26k_upload_timer); // 周期修改时间更新
|
|
||||||
power_on_send_flag = 1;
|
power_on_send_flag = 1;
|
||||||
|
rt_timer_start(nt26k_timer); // 当上电心跳包发送成功时, 开始心跳包周期发送
|
||||||
|
rt_timer_start(nt26k_upload_timer); // 周期修改时间更新
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (power_on_send_flag)
|
if (power_on_send_flag)
|
||||||
|
|
Loading…
Reference in New Issue