From c8a9cfd3f77e3f443fb2efc8d743d58ebce8351d 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: Thu, 23 Jan 2025 09:06:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9A=82=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bsp/src/bsp_h308.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bsp/src/bsp_h308.c b/bsp/src/bsp_h308.c index c560cdc..f941684 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-01-23 08:45:04 + * @LastEditTime: 2025-01-23 09:05:28 * @FilePath: \JT-DT-YD4N02A_RTT_MRS-NT26K\bsp\src\bsp_h308.c * @Description: * @@ -36,9 +36,8 @@ static rt_sem_t uart4_rx_ok_sem; static struct rt_timer uart4_rx_timer; -uint8_t sensor_rx_count = 0; // 接收缓冲区中,已经收到的数据包数量 uint8_t sensor_rx_flag = 0; // 接收缓冲区中,已经收到的数据包数量static rt_uint8_t alarm_flag = 0, fault_flag = 0; - +static rt_uint8_t alarm_flag = 0, fault_flag = 0; TsH308 H308 = {0}; void _UART4_RxTimeout(void *parameter)