From 116e41767faa34db5ceb6227a2dbf71aeb2438da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E9=A9=AC=5F666?= <13089258+pony-six-hundred-and-sixty-six@user.noreply.gitee.com> Date: Sat, 15 Feb 2025 16:06:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E6=97=A0=E6=95=B0=E6=8D=AE=E8=BE=93?= =?UTF-8?q?=E5=87=BA=E7=9A=84=E6=95=85=E9=9A=9C=E6=97=B6=E9=95=BF=E6=94=B9?= =?UTF-8?q?=E4=B8=BA24s=E8=A7=A6=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .mrs/launch.json | 6 +++--- bsp/src/bsp_h308.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.mrs/launch.json b/.mrs/launch.json index 25a7cbf..be75f06 100644 --- a/.mrs/launch.json +++ b/.mrs/launch.json @@ -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 }, diff --git a/bsp/src/bsp_h308.c b/bsp/src/bsp_h308.c index 054de00..8c136ac 100644 --- a/bsp/src/bsp_h308.c +++ b/bsp/src/bsp_h308.c @@ -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);