添加对hmi屏幕的支持,赋码仪按键按下时发送赋码请求
This commit is contained in:
@@ -927,17 +927,9 @@ void selfdev_runtask::slave_sort(){
|
||||
|
||||
void selfdev_runtask::slave_end_slot(int addr,int ack, slave_data data)
|
||||
{
|
||||
int cmd;
|
||||
myarray da;
|
||||
qDebug("selfdev runtask end.");
|
||||
// for(int i=0;i<data.size();i++){
|
||||
// //qDebug("index=%d",i);
|
||||
// slave_ret slave=data.at(i);
|
||||
// //qDebug("index=%d end",i);
|
||||
// // 数据的第一位是来源的地址
|
||||
// slave.data.insert(0,slave.addr);
|
||||
// slave_acked.replace(i,slave.data);
|
||||
// // qDebug("index=%d end 2",i);
|
||||
// slave_acked_num++;
|
||||
// }
|
||||
for(int i=0;i<addrs.size();i++){
|
||||
int addr=addrs[i];
|
||||
myarray sdata=data[addr-1];
|
||||
@@ -946,9 +938,12 @@ void selfdev_runtask::slave_end_slot(int addr,int ack, slave_data data)
|
||||
slave_acked.replace(addr-1,sdata);
|
||||
slave_acked_num++;
|
||||
}
|
||||
if(cmd_pc_ret()!=0){
|
||||
slave_sort();
|
||||
emit send_data_signal(cmd_pc_ret(),ret_slave_to_pc(slave_acked));
|
||||
|
||||
slave_sort();
|
||||
cmd=cmd_pc_ret();
|
||||
da=ret_slave_to_pc(slave_acked);
|
||||
if(cmd!=0){
|
||||
emit send_data_signal(cmd,da);
|
||||
}
|
||||
busy=0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user