|
|
@ -28,7 +28,7 @@ public class DebugLiquidValveOpenThickCommand extends BaseCommandHandler { |
|
|
|
@Override |
|
|
|
public CompletableFuture<Void> handle(CmdDTO cmdDTO) { |
|
|
|
return runAsync(() -> { |
|
|
|
DeviceCommandBundle deviceCommand = DeviceCommandGenerator.valveTurn(SolutionCode.thin.getChannel()); |
|
|
|
DeviceCommandBundle deviceCommand = DeviceCommandGenerator.valveTurn(SolutionCode.thick.getChannel()); |
|
|
|
CommandFuture deviceCommandFuture = deviceCommandService.sendCommand(cmdDTO.getCommandId(), cmdDTO.getCommand(), deviceCommand); |
|
|
|
CommandUtil.wait(deviceCommandFuture); |
|
|
|
}); |
|
|
|