Update NativeSerialPort

thobaben_serialize
Harald Wolff 2014-03-24 18:37:54 +01:00
parent 447d506f91
commit 8bfd2d8fc6
1 changed files with 3 additions and 3 deletions

View File

@ -21,7 +21,7 @@ public class NativeSerialPort extends SerialPort {
throw new IOException("Port nicht gešffnet!");
int ch = native_getch(nativeHandle,getTimeout());
//System.err.println(String.format("CH: 0x%08x", ch));
//System.err.println(String.format("RX: 0x%08x", ch));
if (ch < 0)
throw new IOException(String.format("native_getch: returned: %d",ch));
return ch;
@ -72,7 +72,7 @@ public class NativeSerialPort extends SerialPort {
return false;
nativeHandle = native_open(getPortName());
System.err.println(String.format("SerialPortOSX: nativeHandle: %d",nativeHandle));
System.err.println(String.format("NativeSerialPort: nativeHandle: %d",nativeHandle));
if (nativeHandle < 0)
return false;
@ -83,7 +83,7 @@ public class NativeSerialPort extends SerialPort {
public void close() {
if (nativeHandle >= 0)
{
System.err.println(String.format("SerialPortOSX: Closing nativeHandle %d",nativeHandle));
System.err.println(String.format("NativeSerialPort: Closing nativeHandle %d",nativeHandle));
native_close(nativeHandle);
}
nativeHandle = -1;