回滚修改,详见ReadMe

This commit is contained in:
ranchuan
2023-07-20 18:00:29 +08:00
parent 688e942b1a
commit 2a3b31c226
14 changed files with 4527 additions and 34 deletions

View File

@@ -281,7 +281,7 @@ void protu_send_call(protu_def *p,uint8_t cmd,array_def *data)
if(cmd!=0){
p->cmd=cmd;
// 上报数据不增加流水号 2023.7.14
// p->cmd_no++;
p->cmd_no++;
if(p->codec)
t=p->codec->encode(p,data);
}else if(p->cmd==0)

View File

@@ -77,6 +77,7 @@ static void write_uid_upmit(write_uid_def *w)
emit tran_send_signal(w->u.p,0x82,arr_temp(a));
g_self.step=0;
// 把命令字改为0x82用于接收主机应答
tran_set_busy(w->u.p,0);
w->u.cmd=0x82;
}
@@ -375,7 +376,7 @@ static void check_end(ucport_def *u,port_mcu *src,void *data,int ack,char *err_s
arr_append(a,w->type);
arr_appends(a,w->ack,(6)*10);
emit tran_send_signal(w->u.p,0x81,arr_temp(a));
//tran_set_busy(w->u.p,0);
tran_set_busy(w->u.p,0);
// 把命令字改为0x81用于接收主机应答
w->u.cmd=0x81;
g_self.step=1;