mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 542849: List serial devices starting with ttyS
Change-Id: I874bdebaec7a04257a81aea4c8419f3a783cdf12 Signed-off-by: Waqas Ilyas <waqas.ilyas@gmail.com>
This commit is contained in:
parent
4ed5a2ab13
commit
a05bc1a576
3 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@ Manifest-Version: 1.0
|
||||||
Bundle-ManifestVersion: 2
|
Bundle-ManifestVersion: 2
|
||||||
Bundle-Name: Serial Port
|
Bundle-Name: Serial Port
|
||||||
Bundle-SymbolicName: org.eclipse.cdt.native.serial
|
Bundle-SymbolicName: org.eclipse.cdt.native.serial
|
||||||
Bundle-Version: 1.1.2.qualifier
|
Bundle-Version: 1.1.100.qualifier
|
||||||
Bundle-Vendor: Eclipse CDT
|
Bundle-Vendor: Eclipse CDT
|
||||||
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
|
||||||
Export-Package: org.eclipse.cdt.serial
|
Export-Package: org.eclipse.cdt.serial
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
<relativePath>../../pom.xml</relativePath>
|
<relativePath>../../pom.xml</relativePath>
|
||||||
</parent>
|
</parent>
|
||||||
|
|
||||||
<version>1.1.2-SNAPSHOT</version>
|
<version>1.1.100-SNAPSHOT</version>
|
||||||
<artifactId>org.eclipse.cdt.native.serial</artifactId>
|
<artifactId>org.eclipse.cdt.native.serial</artifactId>
|
||||||
<packaging>eclipse-plugin</packaging>
|
<packaging>eclipse-plugin</packaging>
|
||||||
|
|
||||||
|
|
|
@ -244,7 +244,7 @@ public class SerialPort {
|
||||||
if (osName.equals("Mac OS X")) { //$NON-NLS-1$
|
if (osName.equals("Mac OS X")) { //$NON-NLS-1$
|
||||||
return listDevs(Pattern.compile("cu\\..*")); //$NON-NLS-1$
|
return listDevs(Pattern.compile("cu\\..*")); //$NON-NLS-1$
|
||||||
} else if (osName.equals("Linux")) { //$NON-NLS-1$
|
} else if (osName.equals("Linux")) { //$NON-NLS-1$
|
||||||
return listDevs(Pattern.compile("(ttyUSB|ttyACM).*")); //$NON-NLS-1$
|
return listDevs(Pattern.compile("(ttyUSB|ttyACM|ttyS).*")); //$NON-NLS-1$
|
||||||
} else if (osName.startsWith("Windows")) { //$NON-NLS-1$
|
} else if (osName.startsWith("Windows")) { //$NON-NLS-1$
|
||||||
List<String> ports = new ArrayList<>();
|
List<String> ports = new ArrayList<>();
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue