We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 976cd55 commit de5d10cCopy full SHA for de5d10c
arduino-core/src/cc/arduino/packages/BoardPort.java
@@ -169,11 +169,13 @@ public boolean matchesBoard(TargetBoard board) {
169
// so we must search starting from suffix ".0" and increasing until we
170
// found a match or the board has no more identification properties defined
171
172
- for (int suffix = 0;; suffix++) {
+ for (int suffix = -1;; suffix++) {
173
boolean found = true;
174
for (String prop : identificationProps.keySet()) {
175
String value = identificationProps.get(prop);
176
- prop += "." + suffix;
+ if (suffix >= 0) {
177
+ prop += "." + suffix;
178
+ }
179
if (!boardProps.containsKey(prop)) {
180
return false;
181
}
0 commit comments