mirror of
https://github.com/arduino/Arduino.git
synced 2024-11-29 10:24:12 +01:00
Proceed with upload even if port can't be found. (Issue #1791)
This commit is contained in:
parent
c387f87329
commit
b5fe1b1eb5
@ -40,7 +40,7 @@ import processing.app.debug.TargetBoard;
|
||||
public class UploaderAndMonitorFactory {
|
||||
|
||||
public Uploader newUploader(TargetBoard board, BoardPort port) {
|
||||
if ("true".equals(board.getPreferences().get("upload.via_ssh")) && "network".equals(port.getProtocol())) {
|
||||
if ("true".equals(board.getPreferences().get("upload.via_ssh")) && port != null && "network".equals(port.getProtocol())) {
|
||||
return new SSHUploader(port);
|
||||
}
|
||||
|
||||
|
@ -1692,11 +1692,6 @@ public class Sketch {
|
||||
|
||||
BoardPort boardPort = Base.getDiscoveryManager().find(Preferences.get("serial.port"));
|
||||
|
||||
if (boardPort == null) {
|
||||
editor.statusError(I18n.format("Board at {0} is not available", Preferences.get("serial.port")));
|
||||
return false;
|
||||
}
|
||||
|
||||
Uploader uploader = new UploaderAndMonitorFactory().newUploader(target.getBoards().get(board), boardPort);
|
||||
|
||||
boolean success = false;
|
||||
|
Loading…
Reference in New Issue
Block a user