From 2d8752c99bea31a248502fa207355b6b6920f15e Mon Sep 17 00:00:00 2001 From: rusefi Date: Mon, 3 Jun 2019 21:39:26 -0400 Subject: [PATCH] renaming class to specifify connector --- java_console/io/src/com/rusefi/io/serial/PortHolder.java | 2 +- .../serial/{SerialIoStream.java => SerialIoStreamJSSC.java} | 4 ++-- .../com/rusefi/binaryprotocol/BinaryProtocolCmdSandbox.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename java_console/io/src/com/rusefi/io/serial/{SerialIoStream.java => SerialIoStreamJSSC.java} (93%) diff --git a/java_console/io/src/com/rusefi/io/serial/PortHolder.java b/java_console/io/src/com/rusefi/io/serial/PortHolder.java index eab2646615..677435cf1f 100644 --- a/java_console/io/src/com/rusefi/io/serial/PortHolder.java +++ b/java_console/io/src/com/rusefi/io/serial/PortHolder.java @@ -74,7 +74,7 @@ public class PortHolder { portLock.notifyAll(); } - bp = BinaryProtocolHolder.create(FileLog.LOGGER, new SerialIoStream(serialPort, FileLog.LOGGER)); + bp = BinaryProtocolHolder.create(FileLog.LOGGER, new SerialIoStreamJSSC(serialPort, FileLog.LOGGER)); return bp.connectAndReadConfiguration(listener); } diff --git a/java_console/io/src/com/rusefi/io/serial/SerialIoStream.java b/java_console/io/src/com/rusefi/io/serial/SerialIoStreamJSSC.java similarity index 93% rename from java_console/io/src/com/rusefi/io/serial/SerialIoStream.java rename to java_console/io/src/com/rusefi/io/serial/SerialIoStreamJSSC.java index a090fd1b54..5767e6dae0 100644 --- a/java_console/io/src/com/rusefi/io/serial/SerialIoStream.java +++ b/java_console/io/src/com/rusefi/io/serial/SerialIoStreamJSSC.java @@ -13,12 +13,12 @@ import java.io.IOException; * (c) Andrey Belomutskiy * 5/11/2015. */ -public class SerialIoStream implements IoStream { +public class SerialIoStreamJSSC implements IoStream { private final SerialPort serialPort; private final Logger logger; private boolean isClosed; - public SerialIoStream(SerialPort serialPort, Logger logger) { + public SerialIoStreamJSSC(SerialPort serialPort, Logger logger) { this.serialPort = serialPort; this.logger = logger; } diff --git a/java_console/ui/src/com/rusefi/binaryprotocol/BinaryProtocolCmdSandbox.java b/java_console/ui/src/com/rusefi/binaryprotocol/BinaryProtocolCmdSandbox.java index 84662d31bd..ac9bfd5d0f 100644 --- a/java_console/ui/src/com/rusefi/binaryprotocol/BinaryProtocolCmdSandbox.java +++ b/java_console/ui/src/com/rusefi/binaryprotocol/BinaryProtocolCmdSandbox.java @@ -8,7 +8,7 @@ import com.rusefi.RomRaiderWrapper; import com.rusefi.UploadChanges; import com.rusefi.config.Fields; import com.rusefi.io.serial.PortHolder; -import com.rusefi.io.serial.SerialIoStream; +import com.rusefi.io.serial.SerialIoStreamJSSC; import jssc.SerialPort; /** @@ -33,7 +33,7 @@ public class BinaryProtocolCmdSandbox { if (!opened) { logger.error("failed to open " + port); } - BinaryProtocol bp = BinaryProtocolHolder.create(logger, new SerialIoStream(serialPort, logger)); + BinaryProtocol bp = BinaryProtocolHolder.create(logger, new SerialIoStreamJSSC(serialPort, logger)); PortHolder.setupPort(serialPort, 38400); logger.info("Binary looks good!");