renaming class to specifify connector
This commit is contained in:
parent
e731060952
commit
2d8752c99b
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
|
@ -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!");
|
||||
|
|
Loading…
Reference in New Issue