Skip to main content
summaryrefslogtreecommitdiffstats
path: root/native
diff options
context:
space:
mode:
authorZoltan Adasz2017-03-23 15:10:52 -0400
committerGerrit Code Review @ Eclipse.org2017-03-23 16:32:08 -0400
commit4572eb75f0fe21a0a83847c31d0537d24cfdc609 (patch)
treef76c2f7088dc21fbd22bb40151c5f46377ed380e /native
parenta66ccee4f0c5356af2aef8dde72c613249d35d57 (diff)
downloadorg.eclipse.cdt-4572eb75f0fe21a0a83847c31d0537d24cfdc609.tar.gz
org.eclipse.cdt-4572eb75f0fe21a0a83847c31d0537d24cfdc609.tar.xz
org.eclipse.cdt-4572eb75f0fe21a0a83847c31d0537d24cfdc609.zip
Bug 509118. Extend regexp to detect devices in /dev for Linux.
Change-Id: I1dfcca8f34019a210702473afb946b2a76cb37d7 Signed-off-by: Zoltan Adasz <adanrg@gmail.com>
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 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