mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-14 11:29:26 +01:00
Fixed wrong string check
This commit is contained in:
parent
7d27c43ff2
commit
0ddc8e6300
@ -157,7 +157,7 @@ public class SerialBoardsLister extends TimerTask {
|
|||||||
boardPort.setBoardName(boardName);
|
boardPort.setBoardName(boardName);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (parts[1] != "0000") {
|
if (!parts[1].equals("0000")) {
|
||||||
boardPort.setVIDPID(parts[1], parts[2]);
|
boardPort.setVIDPID(parts[1], parts[2]);
|
||||||
// ask Cloud API to match the board with known VID/PID pair
|
// ask Cloud API to match the board with known VID/PID pair
|
||||||
platform.getBoardWithMatchingVidPidFromCloud(parts[1], parts[2]);
|
platform.getBoardWithMatchingVidPidFromCloud(parts[1], parts[2]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user