From 821dd34c182680f6319d288739c5fa21be1c23c7 Mon Sep 17 00:00:00 2001 From: jxjajs Date: Wed, 11 Dec 2024 18:07:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A3=8E=E9=80=9F=E9=A3=8E?= =?UTF-8?q?=E5=90=91=E6=A0=87=E5=BF=97=E4=BD=8D=E9=94=99=E8=AF=AF=E6=A0=87?= =?UTF-8?q?=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/cpp/SensorsProtocol.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/cpp/SensorsProtocol.cpp b/app/src/main/cpp/SensorsProtocol.cpp index 3b808053..f38a199b 100644 --- a/app/src/main/cpp/SensorsProtocol.cpp +++ b/app/src/main/cpp/SensorsProtocol.cpp @@ -1296,7 +1296,10 @@ void GM_StartSerialComm() srdt.ms_dev[i].IsNeedSerial = 1; srdt.ms_dev[i].FirstCmdTimeCnt = get_msec(); for (j = 0; j < WEATHER_DATA_NUM; j++) + { srdt.ms_dev[i].aiValue[j].AiState = SER_STARTSAMPLE; + weatherpntmsg[j].AiState = SER_STARTSAMPLE; + } break; case SLANT_PROTOCOL: /* 倾角*/ sprintf(szbuf, "%s", "倾角");