自研批检仪检测命令测试成功
广播方式升级从机发现卡死现象
This commit is contained in:
@@ -189,6 +189,7 @@ void can_host::recv_data_cb()
|
||||
irq_fun(myarray(slave.get_data()));
|
||||
}
|
||||
}
|
||||
qDebug()<<"can recv from:"<<slave_addr<<slave.get_data().toHex(' ');
|
||||
}
|
||||
else if (seg_flag == 0x01)
|
||||
{
|
||||
@@ -213,6 +214,7 @@ void can_host::recv_data_cb()
|
||||
irq_fun(myarray(slave.get_data()));
|
||||
}
|
||||
}
|
||||
qDebug()<<"can recv from:"<<slave_addr<<slave.get_data().toHex(' ');
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -227,6 +229,7 @@ void can_host::recv_data_cb()
|
||||
|
||||
int can_host::write(int dst,myarray data)
|
||||
{
|
||||
qDebug()<<"can send to:"<<dst<<data.toHex(' ');
|
||||
append(dst, 1, data);
|
||||
return data.size();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user