添加对hmi屏幕的支持,赋码仪按键按下时发送赋码请求
This commit is contained in:
@@ -18,7 +18,7 @@ void prot_m4::init()
|
||||
recv_data.remove(0,pack_len);
|
||||
if(wait>0) wait--;
|
||||
if(exe_cb_fun(data)==false){
|
||||
qWarning("can not find cb fun with:\"%s\"",data.data());
|
||||
// qWarning("can not find cb fun with:\"%s\"",data.data());
|
||||
}
|
||||
if(send_list.size()>0){
|
||||
if_->write(send_list.takeFirst());
|
||||
|
@@ -23,6 +23,33 @@ HandlePc *handlePcFind(int cmd)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
QList<int> handlePcList()
|
||||
{
|
||||
extern const int __start_protpc;
|
||||
extern const int __stop_protpc;
|
||||
handlepc_def *start = (handlepc_def *)&__start_protpc;
|
||||
handlepc_def *end = (handlepc_def *)&__stop_protpc;
|
||||
handlepc_def *item = 0;
|
||||
QList<int> list;
|
||||
for (item = start; item < end; item++)
|
||||
{
|
||||
if (item != nullptr)
|
||||
{
|
||||
list.append(item->cmd);
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void ProtPc::init()
|
||||
{
|
||||
if(syscfg()->tcp_enable==false){
|
||||
|
@@ -78,7 +78,7 @@ protpc_export(0x30, get_ChidlPc);
|
||||
|
||||
|
||||
|
||||
|
||||
QList<int> handlePcList();
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user