增加激活后的延时逻辑

增加围栏判断逻辑-位置用0x37填充时不判断
This commit is contained in:
CSSC-WORK\murmur 2023-09-07 08:57:45 +08:00
parent d34578dece
commit 9d9acb4fdb
2 changed files with 4 additions and 1 deletions

View File

@ -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;
}

View File

@ -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;