From 9d9acb4fdb42a2c604a232bdf3ce4178dc77f924 Mon Sep 17 00:00:00 2001 From: "CSSC-WORK\\murmur" Date: Thu, 7 Sep 2023 08:57:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=BF=80=E6=B4=BB=E5=90=8E?= =?UTF-8?q?=E7=9A=84=E5=BB=B6=E6=97=B6=E9=80=BB=E8=BE=91=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=9B=B4=E6=A0=8F=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91?= =?UTF-8?q?-=E4=BD=8D=E7=BD=AE=E7=94=A80x37=E5=A1=AB=E5=85=85=E6=97=B6?= =?UTF-8?q?=E4=B8=8D=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- applications/core.c | 2 ++ applications/func/func.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/applications/core.c b/applications/core.c index 14e2a03..e32f4a6 100644 --- a/applications/core.c +++ b/applications/core.c @@ -571,6 +571,8 @@ static void chkAndSendFile_thread_entry() if (rst == RT_EOK) //条件2满足 { LOG_I("TT准备就绪"); + //当前固件底层未缓存待发数据,导致前几包数据可能丢失,暂时用延时规避 + rt_thread_mdelay(2*60*1000); getAndSendFile(); break; } diff --git a/applications/func/func.c b/applications/func/func.c index 10563fd..284de0c 100644 --- a/applications/func/func.c +++ b/applications/func/func.c @@ -789,7 +789,8 @@ void reportLoc_thread_entry(void *parameter) } //检测是否在围栏内 - if (len && !isInFence(rst+len-11-4))//不在围栏内 + uint8_t isLocOk[]={0x37,0x37,0x37}; + if (memcmp(rst+len-11-4,isLocOk,sizeof(isLocOk)) != 0 && !isInFence(rst+len-11-4))//不在围栏内。定位正常才判断围栏 { rst[8] |= 1<<7; isReadyToSendLoc = 1;