added setDTR() method from tom hulbert

This commit is contained in:
benfry
2007-06-23 22:52:15 +00:00
parent 2e9f2c7b1b
commit 56f5cd261f
+8 -1
View File
@@ -207,6 +207,14 @@ public class Serial implements SerialPortEventListener {
}
/**
* Set the DTR line. Addition from Tom Hulbert.
*/
public void setDTR(boolean state) {
port.setDTR(state);
}
synchronized public void serialEvent(SerialPortEvent serialEvent) {
if (serialEvent.getEventType() == SerialPortEvent.DATA_AVAILABLE) {
try {
@@ -658,4 +666,3 @@ public class Serial implements SerialPortEventListener {
*/