Skip to content

Commit d4bbf71

Browse files
committed
Match wildcard property "." with board fqbn/name
1 parent be1a840 commit d4bbf71

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Diff for: arduino-core/src/cc/arduino/packages/BoardPort.java

+10
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,16 @@ public boolean matchesBoard(TargetBoard board) {
144144
PreferencesMap identificationProps = getIdentificationPrefs();
145145
PreferencesMap boardProps = board.getPreferences();
146146

147+
String wildMatcher = identificationProps.get(".");
148+
if (wildMatcher != null) {
149+
if (wildMatcher.equals(board.getId())) {
150+
return true;
151+
}
152+
if (wildMatcher.equals(board.getFQBN())) {
153+
return true;
154+
}
155+
}
156+
147157
// Identification properties are defined in boards.txt with a ".N" suffix
148158
// for example:
149159
//

0 commit comments

Comments
 (0)