(String port)
| 930 | } |
| 931 | |
| 932 | public static void selectSerialPort(String port) { |
| 933 | PreferencesData.set("serial.port", port); |
| 934 | BoardPort boardPort = getDiscoveryManager().find(port, true); |
| 935 | if (boardPort != null) { |
| 936 | PreferencesData.set("serial.port.iserial", boardPort.getPrefs().get("iserial")); |
| 937 | } |
| 938 | String portFile = port; |
| 939 | if (port.startsWith("/dev/")) { |
| 940 | portFile = portFile.substring(5); |
| 941 | } |
| 942 | PreferencesData.set("serial.port.file", portFile); |
| 943 | } |
| 944 | |
| 945 | static public void showError(String title, String message, int exit_code) { |
| 946 | showError(title, message, null, exit_code); |
no test coverage detected