|
@@ -41,6 +41,11 @@ public class AutoButtonBoxTask {
|
|
|
if (readBtn01) {
|
|
|
if (redisCache.getCacheObject("BUTTON_BOX_VALID") == null) {
|
|
|
log.error("按钮盒不在有效时间段内!");
|
|
|
+ // 清除按下标记
|
|
|
+ buttonBoxClient.clearBtn01();
|
|
|
+ // 灭灯
|
|
|
+ buttonBoxClient.writeLamp01Death();
|
|
|
+ log.info("按钮1已经灭灯");
|
|
|
return;
|
|
|
}
|
|
|
buttonTask01();
|
|
@@ -48,6 +53,11 @@ public class AutoButtonBoxTask {
|
|
|
if (readBtn02) {
|
|
|
if (redisCache.getCacheObject("BUTTON_BOX_VALID") == null) {
|
|
|
log.error("按钮盒不在有效时间段内!");
|
|
|
+ // 清除按下标记
|
|
|
+ buttonBoxClient.clearBtn02();
|
|
|
+ // 灭灯
|
|
|
+ buttonBoxClient.writeLamp02Death();
|
|
|
+ log.info("按钮2已经灭灯");
|
|
|
return;
|
|
|
}
|
|
|
buttonTask02();
|