添加对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

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