diff --git a/src/org/hwo/io/NewSerialPort/NewSerialPort.java b/src/org/hwo/io/NewSerialPort/NewSerialPort.java index 1a8b819..f3023da 100644 --- a/src/org/hwo/io/NewSerialPort/NewSerialPort.java +++ b/src/org/hwo/io/NewSerialPort/NewSerialPort.java @@ -320,6 +320,11 @@ public class NewSerialPort { } return nRead; } + + @Override + public void close() throws IOException { + NewSerialPort.this.close(); + } } public class NewSerialPortOutputStream extends OutputStream @@ -388,6 +393,10 @@ public class NewSerialPort { write(b, 0, b.length); } + @Override + public void close() throws IOException { + NewSerialPort.this.close(); + } } static public String[] getPortNames(){