| | |
| | | @Override |
| | | public CommandResponse switchIOMode(LiftIoModeType type) { |
| | | CommandResponse response = new CommandResponse(true); |
| | | liftProtocol.setIOModeType(type); |
| | | liftProtocol.setIOMode(type); |
| | | return response; |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | 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 |
| | |
| | | |
| | | 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() |