From 82b0fd0a4fd93649d54190f26128d00169c5012c Mon Sep 17 00:00:00 2001 From: stark1898y <1658608470@qq.com> Date: Fri, 30 May 2025 13:57:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=A9=E6=B9=BF=E5=BA=A6=E4=BC=A0=E6=84=9F?= =?UTF-8?q?=E5=99=A8=E8=AF=BB=E9=94=99=E7=9A=84=E8=AF=9D=E5=B0=B1=E4=B8=8D?= =?UTF-8?q?=E5=8F=91=E4=BA=86=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- APP/peripheral.c | 3 ++- BSP/inc/bsp_valve.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/APP/peripheral.c b/APP/peripheral.c index f9b155a..0ef3043 100644 --- a/APP/peripheral.c +++ b/APP/peripheral.c @@ -761,6 +761,7 @@ static void performPeriodicTask(void) // tmos_set_event(vavle_task_id, VAVLE_LOW_VBAT_ALARM_EVT); // } + // TODO:温湿度传感器读错的话就不发了? float _humi, _temp; if (BSP_ReadTempHumi(&_humi, &_temp) == 0) { @@ -775,7 +776,7 @@ static void performPeriodicTask(void) else { logError("Read TempHumi Err"); - return; + // return; } #if 1 logDebug("switch_status:%d Temp:%d Bat:%d Humi:%d%% RSSI: %d" diff --git a/BSP/inc/bsp_valve.h b/BSP/inc/bsp_valve.h index 6f11e6c..4114a89 100644 --- a/BSP/inc/bsp_valve.h +++ b/BSP/inc/bsp_valve.h @@ -2,7 +2,7 @@ * @Author : stark1898y 1658608470@qq.com * @Date : 2024-12-12 15:55:38 * @LastEditors : stark1898y 1658608470@qq.com - * @LastEditTime : 2025-05-30 12:20:15 + * @LastEditTime : 2025-05-30 13:51:02 * @FilePath : \BLE_TYQ_CH584M\BSP\inc\bsp_valve.h * @Description : *