mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-04 23:55:26 +02:00
Bug 480508 Add support for ttyACM serial ports.
Change-Id: I166c8d09c2ff59f113ceb82971b8d61e676f7b53
This commit is contained in:
parent
fabc2a02b9
commit
15a087a3f4
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ public class SerialPort {
|
|||
if (osName.equals("Mac OS X")) { //$NON-NLS-1$
|
||||
return listDevs(Pattern.compile("tty\\..*(usbserial|usbmodem).*")); //$NON-NLS-1$
|
||||
} else if (osName.equals("Linux")) { //$NON-NLS-1$
|
||||
return listDevs(Pattern.compile("ttyUSB.*")); //$NON-NLS-1$
|
||||
return listDevs(Pattern.compile("tty(USB|ACM).*")); //$NON-NLS-1$
|
||||
} else if (osName.startsWith("Windows")) { //$NON-NLS-1$
|
||||
List<String> ports = new ArrayList<>();
|
||||
int i = 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue