From bcd0c963d7311d0046bde08adf889adf41ab4c8b Mon Sep 17 00:00:00 2001 From: 95384 <664090429@qq.com> Date: Mon, 13 Jan 2025 10:49:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=8A=A0=E5=AF=86=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E4=B8=8B=E5=BC=80=E6=9C=BA=E7=AC=AC=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E6=B8=A9=E6=B9=BF=E5=BA=A6=E8=BF=98=E8=83=BD=E9=87=87=E9=9B=86?= =?UTF-8?q?=E5=87=BA=E6=9D=A5=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App/Src/anemometer_dev.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/App/Src/anemometer_dev.c b/App/Src/anemometer_dev.c index 75c1716..cb63dd5 100644 --- a/App/Src/anemometer_dev.c +++ b/App/Src/anemometer_dev.c @@ -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)