修复加密状态下开机第一次温湿度还能采集出来的BUG

This commit is contained in:
95384 2025-01-13 10:49:57 +08:00
parent 17747b92ba
commit bcd0c963d7
1 changed files with 5 additions and 1 deletions

View File

@ -1069,10 +1069,14 @@ void tem_hum_update_task(void const * argument)
uint32_t time_s_1Day = 0;//1天的秒数
float backupTemperature;
uint8_t hp203_ret;
uint8_t sht30_ret;
// 开机先采集一次大气压温湿度
if(tem_hun_check_flag)
{
uint8_t hp203_ret = get_HP203_data(&backupTemperature, &g_stMcs_Para.pressure);
uint8_t sht30_ret = get_temp_humi_data(&g_stMcs_Para.temperature, &g_stMcs_Para.humidity);
}
// 采集HP203B传感器数据大气压
if(hp203_ret == FALSE)