修复了上电上传失败的重启机制

This commit is contained in:
小马_666 2025-01-24 09:00:01 +08:00
parent d11e20b2e8
commit c86894972d
2 changed files with 5 additions and 5 deletions

View File

@ -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-01-23 09:24:08 * @LastEditTime: 2025-01-24 08:43:53
* @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:
* *
@ -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但nt26k_conncet_tcp_flag = 1此时不发起重连等待事件触发就行
nt26k_connect_sever_flag = 0; nt26k_connect_sever_flag = 0;
return RT_EOK; continue;
} }
} }
if (rt_strcmp(event->event_name, "掉电事件") == RT_EOK) 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); rt_thread_mdelay(3000);
} }
} }
// 函数执行完毕返回0
return RT_EOK; return RT_ERROR;
} }
// 比较帧头和帧尾 // 比较帧头和帧尾

View File

@ -48,7 +48,7 @@ uint16_t Get_VIN_VoltageInt1000x(void)
{ {
uint16_t voltage = (Get_ADC_Average(kVinAdc) * 3.3 / 4096) * VIN_VOLTAGE_RATIO * 1000; 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; return voltage;
} }
#ifdef FINSH_USING_MSH #ifdef FINSH_USING_MSH