From 0c5f7c66f34b02c07c3a1bf9832ef402fa26339d Mon Sep 17 00:00:00 2001
From: wuyouming666 <2265557248@qq.com>
Date: 星期一, 06 五月 2024 10:18:11 +0800
Subject: [PATCH] 未回零显示问题
---
springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java b/springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java
index 6989dec..ddfdf88 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java
@@ -78,11 +78,7 @@
while (this != null) {
try {
Thread.sleep(1000);
- } catch (InterruptedException e) {
- e.printStackTrace();
- }
-
- this.readValue();
+ this.readValue();
String PlcAddress = this.name;
Integer Plccount = this.count;
@@ -141,7 +137,10 @@
}
}
}
- }
+ } catch (InterruptedException e) {
+ e.printStackTrace();
}
- }
+ }
+ }
+}
--
Gitblit v1.8.0