Skip to content

Commit 0ddc8e6

Browse files
committed
Fixed wrong string check
1 parent 7d27c43 commit 0ddc8e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public synchronized void retriggerDiscovery(boolean polled) {
157157
boardPort.setBoardName(boardName);
158158
}
159159
} else {
160-
if (parts[1] != "0000") {
160+
if (!parts[1].equals("0000")) {
161161
boardPort.setVIDPID(parts[1], parts[2]);
162162
// ask Cloud API to match the board with known VID/PID pair
163163
platform.getBoardWithMatchingVidPidFromCloud(parts[1], parts[2]);

0 commit comments

Comments
 (0)