Skip to content

Commit 643f847

Browse files
committed
Restore serial.port.iserial field
uses 2893c2d
1 parent 60b169f commit 643f847

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)