温湿度传感器读错的话就不发了?

This commit is contained in:
stark1898y 2025-05-30 13:57:01 +08:00
parent 6c27ef9544
commit 82b0fd0a4f
2 changed files with 3 additions and 2 deletions

View File

@ -761,6 +761,7 @@ static void performPeriodicTask(void)
// tmos_set_event(vavle_task_id, VAVLE_LOW_VBAT_ALARM_EVT); // tmos_set_event(vavle_task_id, VAVLE_LOW_VBAT_ALARM_EVT);
// } // }
// TODO温湿度传感器读错的话就不发了
float _humi, _temp; float _humi, _temp;
if (BSP_ReadTempHumi(&_humi, &_temp) == 0) if (BSP_ReadTempHumi(&_humi, &_temp) == 0)
{ {
@ -775,7 +776,7 @@ static void performPeriodicTask(void)
else else
{ {
logError("Read TempHumi Err"); logError("Read TempHumi Err");
return; // return;
} }
#if 1 #if 1
logDebug("switch_status:%d Temp:%d Bat:%d Humi:%d%% RSSI: %d" logDebug("switch_status:%d Temp:%d Bat:%d Humi:%d%% RSSI: %d"

View File

@ -2,7 +2,7 @@
* @Author : stark1898y 1658608470@qq.com * @Author : stark1898y 1658608470@qq.com
* @Date : 2024-12-12 15:55:38 * @Date : 2024-12-12 15:55:38
* @LastEditors : stark1898y 1658608470@qq.com * @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 * @FilePath : \BLE_TYQ_CH584M\BSP\inc\bsp_valve.h
* @Description : * @Description :
* *