From ba9270a11c3811624ebc0dc4c9ce34bb786c6f34 Mon Sep 17 00:00:00 2001 From: qlsxk <qlsxk@qq.com> Date: 星期五, 26 九月 2025 14:28:53 +0800 Subject: [PATCH] # --- src/main/java/com/zy/core/thread/impl/NyLiftThread.java | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zy/core/thread/impl/NyLiftThread.java b/src/main/java/com/zy/core/thread/impl/NyLiftThread.java index 10ddf70..9a49e55 100644 --- a/src/main/java/com/zy/core/thread/impl/NyLiftThread.java +++ b/src/main/java/com/zy/core/thread/impl/NyLiftThread.java @@ -353,7 +353,7 @@ @Override public CommandResponse switchIOMode(LiftIoModeType type) { CommandResponse response = new CommandResponse(true); - liftProtocol.setIOModeType(type); + liftProtocol.setIOMode(type); return response; } @@ -410,8 +410,7 @@ } } - if (this.liftProtocol.getProtocolStatus() == null - || this.liftProtocol.getModel() == null + if (this.liftProtocol.getModel() == null || this.liftProtocol.getDeviceStatus() == null || this.liftProtocol.getErrorCode() == null || this.liftProtocol.getExtend() == null @@ -421,8 +420,7 @@ InnerLiftExtend extend = (InnerLiftExtend) this.liftProtocol.getExtend(); - boolean res = this.liftProtocol.getProtocolStatus() == LiftProtocolStatusType.IDLE.id - && this.liftProtocol.getModel() == 2 + boolean res = this.liftProtocol.getModel() == 2 && this.liftProtocol.getDeviceStatus() == LiftDeviceStatusType.IDLE.id && this.liftProtocol.getErrorCode() == 0 && !extend.getFrontOverrun() -- Gitblit v1.9.1