lxbzmy / java-simple-serial-connector

Automatically exported from code.google.com/p/java-simple-serial-connector
0 stars 0 forks source link

SerialPortTimeoutException trown while result shows it returned correct value and amount of bytes #78

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
The following code is used:
try
{
    byte[] result = connection.readBytes(2, 1000);
}
catch (SerialPortTimeoutException ex)
{
    System.out.println(Arrays.toString(result));
}

What is the expected output? What do you see instead?
Output shows that both bytes were filled with the correct values(both bytes 
were filled with correct anwswer) thus a timeout exception should not be trown.

What version of the product are you using? On what operating system?
2.8.0(Maven version)

Please provide any additional information below.

Original issue reported on code.google.com by remielo...@gmail.com on 4 Jan 2015 at 4:27

GoogleCodeExporter commented 9 years ago
Forgot the operating system: Windows 8.1 x64

Original comment by remielo...@gmail.com on 4 Jan 2015 at 4:38