修复加密状态下开机第一次温湿度还能采集出来的BUG
This commit is contained in:
parent
17747b92ba
commit
bcd0c963d7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue