mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-19 09:42:11 +03:00
Filter out /dev/cu* ports, can be re-enabled manually adding "serial.ports.showall=true" into preferences.txt file
Closes #2624
This commit is contained in:
@ -30,6 +30,7 @@ import java.util.Map;
|
||||
|
||||
import javax.swing.UIManager;
|
||||
|
||||
import cc.arduino.packages.BoardPort;
|
||||
import com.sun.jna.Library;
|
||||
import com.sun.jna.Native;
|
||||
import processing.app.debug.TargetBoard;
|
||||
@ -217,4 +218,8 @@ public class Platform {
|
||||
_("Unspecified platform, no launcher available.\nTo enable opening URLs or folders, add a \n\"launcher=/path/to/app\" line to preferences.txt"),
|
||||
null);
|
||||
}
|
||||
|
||||
public List<BoardPort> filterPorts(List<BoardPort> ports, boolean aBoolean) {
|
||||
return new LinkedList<BoardPort>(ports);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user