将无数据输出的故障时长改为24s触发

This commit is contained in:
小马_666 2025-02-15 16:06:22 +08:00
parent 3ae0939047
commit 116e41767f
2 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@
"type": "mrs-debugger",
"request": "launch",
"name": "JT-DT-YD4N02A_RTT_MRS-4G",
"cwd": "c:\\Users\\张喆1223\\Desktop\\NT26K\\JT-DT-YD4N02A_4G_RTT_MRS",
"cwd": "d:\\SXDT\\Project\\CH32\\JT-DT-YD4N02A_RTT_MRS-NT26K",
"openOCDCfg": {
"useLocalOpenOCD": true,
"executable": "c:/MounRiver/MounRiver_Studio2/resources/app/resources/win32/components/WCH/OpenOCD/OpenOCD/bin/openocd.exe",
@ -39,8 +39,8 @@
"additionalCommands": []
},
"loadedFiles": {
"executableFile": "c:\\Users\\张喆1223\\Desktop\\NT26K\\JT-DT-YD4N02A_4G_RTT_MRS\\obj\\JT-DT-YD4N02A_RTT_MRS-4G.elf",
"symbolFile": "c:\\Users\\张喆1223\\Desktop\\NT26K\\JT-DT-YD4N02A_4G_RTT_MRS\\obj\\JT-DT-YD4N02A_RTT_MRS-4G.elf",
"executableFile": "d:\\SXDT\\Project\\CH32\\JT-DT-YD4N02A_RTT_MRS-NT26K\\obj\\JT-DT-YD4N02A_RTT_MRS-4G.elf",
"symbolFile": "d:\\SXDT\\Project\\CH32\\JT-DT-YD4N02A_RTT_MRS-NT26K\\obj\\JT-DT-YD4N02A_RTT_MRS-4G.elf",
"executableFileOffset": 0,
"symbolFileOffset": 0
},

View File

@ -2,7 +2,7 @@
* @Author: mbw
* @Date: 2024-11-14 10:21:04
* @LastEditors: mbw && 1600520629@qq.com
* @LastEditTime: 2025-02-06 09:16:14
* @LastEditTime: 2025-02-15 16:05:43
* @FilePath: \JT-DT-YD4N02A_RTT_MRS-NT26K\bsp\src\bsp_h308.c
* @Description:
*
@ -372,10 +372,10 @@ static void h308_thread_entry(void *param)
h308_rx_timout_cnt = 0;
}
}
else if (ret == -RT_ETIMEOUT) // 这个主要是考虑传感器未焊接好或者脱落的情况国标要求30s内反应 3*5 = 15s符合国标
else if (ret == -RT_ETIMEOUT) // 这个主要是考虑传感器未焊接好或者脱落的情况国标要求30s内反应 3*8 = 24s符合国标
{
h308_rx_timout_cnt++;
if (h308_rx_timout_cnt >= 6)
if (h308_rx_timout_cnt >= 8)
{
H308_RST_ON;
rt_thread_mdelay(100);