Skip to content

Commit 2b18d1f

Browse files
committed
Merge remote-tracking branch 'arduino/master'
2 parents 63fc618 + 643f847 commit 2b18d1f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arduino-core/src/cc/arduino/packages/uploaders/SerialUploader.java

+7
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,13 @@ public boolean uploadUsingPreferences(File sourcePath, String buildPath, String
177177
Thread.sleep(100);
178178
}
179179

180+
BoardPort boardPort = BaseNoGui.getDiscoveryManager().find(PreferencesData.get("serial.port"));
181+
try {
182+
prefs.put("serial.port.iserial", boardPort.getPrefs().getOrExcept("iserial"));
183+
} catch (Exception e) {
184+
// if serial port does not contain an iserial field
185+
}
186+
180187
prefs.put("build.path", buildPath);
181188
prefs.put("build.project_name", className);
182189
if (verbose) {

0 commit comments

Comments
 (0)