File tree 1 file changed +4
-2
lines changed
arduino-core/src/cc/arduino/packages
1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ public boolean matchesBoard(TargetBoard board) {
169
169
// so we must search starting from suffix ".0" and increasing until we
170
170
// found a match or the board has no more identification properties defined
171
171
172
- for (int suffix = -1 ;; suffix ++) {
172
+ for (int suffix = -1 ; suffix < 10 ; suffix ++) {
173
173
boolean found = true ;
174
174
for (String prop : identificationProps .keySet ()) {
175
175
String value = identificationProps .get (prop );
@@ -181,7 +181,8 @@ public boolean matchesBoard(TargetBoard board) {
181
181
break ;
182
182
}
183
183
if (!boardProps .containsKey (prop )) {
184
- return false ;
184
+ found = false ;
185
+ break ;
185
186
}
186
187
if (!value .equalsIgnoreCase (boardProps .get (prop ))) {
187
188
found = false ;
@@ -192,6 +193,7 @@ public boolean matchesBoard(TargetBoard board) {
192
193
return true ;
193
194
}
194
195
}
196
+ return false ;
195
197
}
196
198
197
199
}
You can’t perform that action at this time.
0 commit comments