Skip to content

Commit 9abfdeb

Browse files
committed
drop global symbol and replace with board.iserial
1 parent 428cdf1 commit 9abfdeb

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

arduino-core/src/cc/arduino/packages/discoverers/serial/SerialBoardsLister.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ public void run() {
8686
if (boardData != null) {
8787
boardPort.getPrefs().put("vid", boardData.get("vid").toString());
8888
boardPort.getPrefs().put("pid", boardData.get("pid").toString());
89+
boardPort.getPrefs().put("iserial", boardData.get("iserial").toString());
8990

9091
TargetBoard board = (TargetBoard) boardData.get("board");
9192
if (board != null) {

arduino-core/src/processing/app/Platform.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ protected Map<String, Object> resolveDeviceByVendorIdProductId(Map<String, Targe
167167
boardData.put("vid", vids.get(i));
168168
boardData.put("pid", pids.get(i));
169169
boardData.put("iserial", readVIDPID.substring(vidPid.length()));
170-
PreferencesData.set("serial.port.iserial", readVIDPID.substring(vidPid.length()+1));
171170
return boardData;
172171
}
173172
}

0 commit comments

Comments
 (0)