Skip to content

Commit

Permalink
Apply receive timeout to commPort when using RxtxChannel. Part of
Browse files Browse the repository at this point in the history
  • Loading branch information
cmcmaugh committed Feb 22, 2014
1 parent 60b830b commit b7add4f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -66,7 +66,7 @@ protected void doConnect(SocketAddress remoteAddress, SocketAddress localAddress
RxtxDeviceAddress remote = (RxtxDeviceAddress) remoteAddress;
final CommPortIdentifier cpi = CommPortIdentifier.getPortIdentifier(remote.value());
final CommPort commPort = cpi.open(getClass().getName(), 1000);

commPort.enableReceiveTimeout(config().getOption(READ_TIMEOUT));
deviceAddress = remote;

serialPort = (SerialPort) commPort;
Expand Down

0 comments on commit b7add4f

Please sign in to comment.