增加激活后的延时逻辑
增加围栏判断逻辑-位置用0x37填充时不判断
This commit is contained in:
parent
d34578dece
commit
9d9acb4fdb
@ -571,6 +571,8 @@ static void chkAndSendFile_thread_entry()
|
|||||||
if (rst == RT_EOK) //条件2满足
|
if (rst == RT_EOK) //条件2满足
|
||||||
{
|
{
|
||||||
LOG_I("TT准备就绪");
|
LOG_I("TT准备就绪");
|
||||||
|
//当前固件底层未缓存待发数据,导致前几包数据可能丢失,暂时用延时规避
|
||||||
|
rt_thread_mdelay(2*60*1000);
|
||||||
getAndSendFile();
|
getAndSendFile();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
rst[8] |= 1<<7;
|
||||||
isReadyToSendLoc = 1;
|
isReadyToSendLoc = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user