修复了上电上传失败的重启机制
This commit is contained in:
parent
d11e20b2e8
commit
c86894972d
|
@ -2,7 +2,7 @@
|
|||
* @Author: mbw
|
||||
* @Date: 2024-10-09 08:42:14
|
||||
* @LastEditors: mbw && 1600520629@qq.com
|
||||
* @LastEditTime: 2025-01-23 09:24:08
|
||||
* @LastEditTime: 2025-01-24 08:43:53
|
||||
* @FilePath: \JT-DT-YD4N02A_RTT_MRS-NT26K\bsp\src\bsp_nt26k.c
|
||||
* @Description:
|
||||
*
|
||||
|
@ -814,7 +814,7 @@ int Nt26k_Process_Events(Nt26kEvent nt26k_recv_event, struct at_device *device,
|
|||
{
|
||||
// 收不到说明在平台未注册,此时nt26k_connect_sever_flag 为0,但nt26k_conncet_tcp_flag = 1;此时不发起重连,等待事件触发就行
|
||||
nt26k_connect_sever_flag = 0;
|
||||
return RT_EOK;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (rt_strcmp(event->event_name, "掉电事件") == RT_EOK)
|
||||
|
@ -845,8 +845,8 @@ int Nt26k_Process_Events(Nt26kEvent nt26k_recv_event, struct at_device *device,
|
|||
rt_thread_mdelay(3000);
|
||||
}
|
||||
}
|
||||
// 函数执行完毕,返回0
|
||||
return RT_EOK;
|
||||
|
||||
return RT_ERROR;
|
||||
}
|
||||
|
||||
// 比较帧头和帧尾
|
||||
|
|
|
@ -48,7 +48,7 @@ uint16_t Get_VIN_VoltageInt1000x(void)
|
|||
{
|
||||
uint16_t voltage = (Get_ADC_Average(kVinAdc) * 3.3 / 4096) * VIN_VOLTAGE_RATIO * 1000;
|
||||
|
||||
LOG_D("Get_VIN_VoltageInt1000x = %04d", voltage);
|
||||
// LOG_D("Get_VIN_VoltageInt1000x = %04d", voltage);
|
||||
return voltage;
|
||||
}
|
||||
#ifdef FINSH_USING_MSH
|
||||
|
|
Loading…
Reference in New Issue