mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Proceed with upload even if port can't be found. (Issue #1791)
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user