添加对hmi屏幕的支持,赋码仪按键按下时发送赋码请求

This commit is contained in:
ranchuan
2024-01-29 18:05:23 +08:00
parent 2a4e7f1f1e
commit 2fb109f2ac
17 changed files with 338 additions and 23 deletions

View File

@@ -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());

View File

@@ -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){

View File

@@ -78,7 +78,7 @@ protpc_export(0x30, get_ChidlPc);
QList<int> handlePcList();