Skip to main content
summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorDoug Schaefer2016-06-27 12:02:13 -0400
committerDoug Schaefer2016-06-27 12:39:41 -0400
commit972aeb3d0be3e6f0bbb4d257fb907e1e7d4cea63 (patch)
tree6524a861cc04420b2f2c4f16647bf95bf864f40c /native
parentff412311a70c60c68b4e367804c9ef83b306009a (diff)
downloadorg.eclipse.cdt-972aeb3d0be3e6f0bbb4d257fb907e1e7d4cea63.tar.gz
org.eclipse.cdt-972aeb3d0be3e6f0bbb4d257fb907e1e7d4cea63.tar.xz
org.eclipse.cdt-972aeb3d0be3e6f0bbb4d257fb907e1e7d4cea63.zip
Bug 481199 - Add support for cu serial devices on Mac.
Diffstat (limited to 'native')
-rw-r--r--native/org.eclipse.cdt.native.serial/src/org/eclipse/cdt/serial/SerialPort.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/org.eclipse.cdt.native.serial/src/org/eclipse/cdt/serial/SerialPort.java b/native/org.eclipse.cdt.native.serial/src/org/eclipse/cdt/serial/SerialPort.java
index a00afb31a9..365e6322f3 100644
--- a/native/org.eclipse.cdt.native.serial/src/org/eclipse/cdt/serial/SerialPort.java
+++ b/native/org.eclipse.cdt.native.serial/src/org/eclipse/cdt/serial/SerialPort.java
@@ -226,7 +226,7 @@ public class SerialPort {
public static String[] list() throws IOException {
String osName = System.getProperty("os.name"); //$NON-NLS-1$
if (osName.equals("Mac OS X")) { //$NON-NLS-1$
- return listDevs(Pattern.compile("tty\\..*(usbserial|usbmodem).*")); //$NON-NLS-1$
+ return listDevs(Pattern.compile("(?:tty|cu)\\..*(?:usbserial|usbmodem).*")); //$NON-NLS-1$
} else if (osName.equals("Linux")) { //$NON-NLS-1$
return listDevs(Pattern.compile("ttyUSB.*")); //$NON-NLS-1$
} else if (osName.startsWith("Windows")) { //$NON-NLS-1$

Back to the top