Apply receive timeout to commPort when using RxtxChannel. Part of [#1390]
This commit is contained in:
parent
8c68c5a3ae
commit
cc4198971e
@ -65,7 +65,7 @@ public class RxtxChannel extends OioByteStreamChannel {
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user