Indentation

This commit is contained in:
Trustin Lee 2013-01-10 13:28:09 +09:00
parent 4528c793ba
commit 8cba765463

View File

@ -101,18 +101,17 @@ public class RxtxChannel extends AbstractOioByteChannel {
@Override @Override
protected void doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception { protected void doConnect(SocketAddress remoteAddress, SocketAddress localAddress) throws Exception {
RxtxDeviceAddress remote = (RxtxDeviceAddress) remoteAddress; RxtxDeviceAddress remote = (RxtxDeviceAddress) remoteAddress;
final CommPortIdentifier cpi = final CommPortIdentifier cpi = CommPortIdentifier.getPortIdentifier(remote.getDeviceAddress());
CommPortIdentifier.getPortIdentifier(remote.getDeviceAddress());
final CommPort commPort = cpi.open(getClass().getName(), 1000); final CommPort commPort = cpi.open(getClass().getName(), 1000);
deviceAddress = remote; deviceAddress = remote;
serialPort = (SerialPort) commPort; serialPort = (SerialPort) commPort;
serialPort.setSerialPortParams( serialPort.setSerialPortParams(
config().getOption(BAUD_RATE), config().getOption(BAUD_RATE),
config().getOption(DATA_BITS).value(), config().getOption(DATA_BITS).value(),
config().getOption(STOP_BITS).value(), config().getOption(STOP_BITS).value(),
config().getOption(PARITY_BIT).value() config().getOption(PARITY_BIT).value()
); );
serialPort.setDTR(config().getOption(DTR)); serialPort.setDTR(config().getOption(DTR));
serialPort.setRTS(config().getOption(RTS)); serialPort.setRTS(config().getOption(RTS));