Permalink
Browse files

serial fix

  • Loading branch information...
aneox committed Oct 15, 2018
1 parent 9c44075 commit 3354988759817ac4bbbd22d43785c9e29edd0932
@@ -145,9 +145,15 @@ public synchronized void disconnect() throws Exception {
linuxPortNames.toArray (portNames);
return portNames;
}
else {
return SerialPortList.getPortNames();
}
else
if (SerialNativeInterface.getOsType () == SerialNativeInterface.OS_MAC_OS_X) {
String pattern = "^.*tty\\..*$";
Pattern rx = Pattern.compile (pattern);
return SerialPortList.getPortNames("/dev/", rx);
}
else {
return SerialPortList.getPortNames();
}
}
/**

0 comments on commit 3354988

Please sign in to comment.