Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZoltan Adasz2017-03-23 15:10:52 -0400
committerDoug Schaefer2017-04-03 13:06:56 -0400
commitc1d7f5c523e2538d5abbabe28f78d8357f82a307 (patch)
tree679d68e148f69c21467aadbc7bad2a497008218e
parent6ee23f24ccc0ab1d9ef6467eb45ee14ff88aac44 (diff)
downloadorg.eclipse.cdt-c1d7f5c523e2538d5abbabe28f78d8357f82a307.tar.gz
org.eclipse.cdt-c1d7f5c523e2538d5abbabe28f78d8357f82a307.tar.xz
org.eclipse.cdt-c1d7f5c523e2538d5abbabe28f78d8357f82a307.zip
Bug 509118. Extend regexp to detect devices in /dev for Linux.
Change-Id: I1dfcca8f34019a210702473afb946b2a76cb37d7 Signed-off-by: Zoltan Adasz <adanrg@gmail.com>
-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 681b74c47e..fb1d39c49b 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
@@ -228,7 +228,7 @@ public class SerialPort {
if (osName.equals("Mac OS X")) { //$NON-NLS-1$
return listDevs(Pattern.compile("cu\\..*")); //$NON-NLS-1$
} else if (osName.equals("Linux")) { //$NON-NLS-1$
- return listDevs(Pattern.compile("ttyUSB.*")); //$NON-NLS-1$
+ return listDevs(Pattern.compile("(ttyUSB|ttyACM).*")); //$NON-NLS-1$
} else if (osName.startsWith("Windows")) { //$NON-NLS-1$
List<String> ports = new ArrayList<>();
int i = 0;

Back to the top