From a12b015a8b6cf2aa4d40cff95b033fba168fac2c Mon Sep 17 00:00:00 2001 From: lsh <lsh123456> Date: 星期五, 23 九月 2022 14:02:27 +0800 Subject: [PATCH] #配置文件中${project.basedir}修改为${pom.basedir} --- src/main/java/com/zy/core/thread/SiemensCrnThread.java | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/core/thread/SiemensCrnThread.java b/src/main/java/com/zy/core/thread/SiemensCrnThread.java index 912044c..65343df 100644 --- a/src/main/java/com/zy/core/thread/SiemensCrnThread.java +++ b/src/main/java/com/zy/core/thread/SiemensCrnThread.java @@ -38,6 +38,11 @@ private CrnProtocol crnProtocol; private boolean resetFlag = false; + /** + * 鍫嗗灈鏈烘槸鍚﹀湪鍥炲師鐐硅繍鍔ㄤ腑鏍囪 + */ + private boolean backHpFlag = false; + public SiemensCrnThread(CrnSlave slave) { this.slave = slave; } @@ -174,6 +179,9 @@ // 澶嶄綅淇″彿 if (crnProtocol.getStatusType().equals(CrnStatusType.WAITING)) { if (resetFlag) { + if(crnProtocol.getTaskNo()==9999){ + backHpFlag = false; + } CrnCommand crnCommand = new CrnCommand(); crnCommand.setAckFinish((short)1); if (write(crnCommand)) { -- Gitblit v1.9.1