1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-03-13 10:29:35 +01:00

Fixed wrong string check

This commit is contained in:
Cristian Maglie 2016-08-31 19:12:09 +02:00
parent 7d27c43ff2
commit 0ddc8e6300

View File

@ -157,7 +157,7 @@ public class SerialBoardsLister extends TimerTask {
boardPort.setBoardName(boardName);
}
} else {
if (parts[1] != "0000") {
if (!parts[1].equals("0000")) {
boardPort.setVIDPID(parts[1], parts[2]);
// ask Cloud API to match the board with known VID/PID pair
platform.getBoardWithMatchingVidPidFromCloud(parts[1], parts[2]);