mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
Merge pull request #2626 from ffissore/hide-cu-devs-on-mac
Macosx: filter out /dev/cu* ports
This commit is contained in:
@ -1004,6 +1004,8 @@ public class Editor extends JFrame implements RunnerListener {
|
||||
|
||||
List<BoardPort> ports = Base.getDiscoveryManager().discovery();
|
||||
|
||||
ports = Base.getPlatform().filterPorts(ports, Preferences.getBoolean("serial.ports.showall"));
|
||||
|
||||
Collections.sort(ports, new Comparator<BoardPort>() {
|
||||
@Override
|
||||
public int compare(BoardPort o1, BoardPort o2) {
|
||||
|
Reference in New Issue
Block a user