Skip to content

Commit 4dd1275

Browse files
author
Me No Dev
committed
show all serial ports on a mac
1 parent c74ff96 commit 4dd1275

File tree

1 file changed

+1
-1
lines changed
  • it.baeyens.arduino.common/src/it/baeyens/arduino/arduino

1 file changed

+1
-1
lines changed

it.baeyens.arduino.common/src/it/baeyens/arduino/arduino/Serial.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public static Vector<String> list() {
128128
String[] portNames;
129129
String os = System.getProperty("os.name").toLowerCase(); //$NON-NLS-1$
130130
if (os.indexOf("mac") >= 0) { //$NON-NLS-1$
131-
portNames = SerialPortList.getPortNames("/dev/", Pattern.compile("^cu\\..*(serial|usb).*")); //$NON-NLS-1$ //$NON-NLS-2$
131+
portNames = SerialPortList.getPortNames("/dev/", Pattern.compile("^cu\\..*")); //$NON-NLS-1$ //$NON-NLS-2$
132132
} else {
133133
portNames = SerialPortList.getPortNames();
134134
}

0 commit comments

Comments
 (0)