diff --git a/src/main/java/com/fazecast/jSerialComm/SerialPort.java b/src/main/java/com/fazecast/jSerialComm/SerialPort.java index ad05597..845d70d 100644 --- a/src/main/java/com/fazecast/jSerialComm/SerialPort.java +++ b/src/main/java/com/fazecast/jSerialComm/SerialPort.java @@ -657,6 +657,8 @@ public final class SerialPort readTimeout = newReadTimeout; writeTimeout = newWriteTimeout; } + else if ((newReadTimeout > 0) && (newReadTimeout <= 100)) + readTimeout = 100; else readTimeout = Math.round((float)newReadTimeout / 100.0f) * 100;