添加传入数据解析队列清空
This commit is contained in:
1 parent
32a29f8517
commit
c5fb58b732
1 file changed
+6
@@ -469,6 +469,7 @@ void proc_thread_entry(void *parameter)
|
||||
extract_between(req->input, "[", "]", DATA_machins, sizeof(DATA_machins));
|
||||
if(strcmp(DATA_machins,machine_ID)==0)
|
||||
{
|
||||
//处理输入数据
|
||||
char *p=strstr(req->input,"]");
|
||||
if(!p)
|
||||
{
|
||||
@@ -476,6 +477,11 @@ void proc_thread_entry(void *parameter)
|
||||
}else {
|
||||
p += strlen("]");
|
||||
}
|
||||
//清空输入队列
|
||||
for(int16_t i=0;i<MAX_INPUT_LEN;i++)
|
||||
{
|
||||
req->input[i]=0;
|
||||
}
|
||||
|
||||
//处理指令分析
|
||||
pasre_DAT(DATA_api,p);
|
||||
|
||||
Reference in new issue
Block a user