From 9ecc508fb4a0b9ccb41ff850d81980d8de4da30d Mon Sep 17 00:00:00 2001 From: Harald Christian Joachim Wolff Date: Thu, 24 Aug 2017 20:06:16 +0200 Subject: [PATCH] Merged --- src/org/hwo/io/NewSerialPort/NewSerialPort.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/org/hwo/io/NewSerialPort/NewSerialPort.java b/src/org/hwo/io/NewSerialPort/NewSerialPort.java index 30dca8c..1a8b819 100644 --- a/src/org/hwo/io/NewSerialPort/NewSerialPort.java +++ b/src/org/hwo/io/NewSerialPort/NewSerialPort.java @@ -63,7 +63,7 @@ public class NewSerialPort { setHandShake(HandShake.NONE); setParity(Parity.NONE); - setTimeOut(0); + setTimeOut(250); this.inputStream = new NewSerialPortInputStream(); this.outputStream = new NewSerialPortOutputStream(); @@ -362,7 +362,6 @@ public class NewSerialPort { public void write(byte[] b, int off, int len) throws IOException { int nWritten = 0; - //log(DEBUGDETAIL,"NSP::write(...)"); for (int redo=0; redo < 5 ; redo++){ nWritten = nsp_write_bytes(nsp, b, off, len);