mirror of
https://github.com/arduino/Arduino.git
synced 2025-01-19 08:52:15 +01:00
Match wildcard property "." with board fqbn/name
This commit is contained in:
parent
be1a8403f0
commit
d4bbf71b30
@ -144,6 +144,16 @@ public class BoardPort {
|
|||||||
PreferencesMap identificationProps = getIdentificationPrefs();
|
PreferencesMap identificationProps = getIdentificationPrefs();
|
||||||
PreferencesMap boardProps = board.getPreferences();
|
PreferencesMap boardProps = board.getPreferences();
|
||||||
|
|
||||||
|
String wildMatcher = identificationProps.get(".");
|
||||||
|
if (wildMatcher != null) {
|
||||||
|
if (wildMatcher.equals(board.getId())) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (wildMatcher.equals(board.getFQBN())) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Identification properties are defined in boards.txt with a ".N" suffix
|
// Identification properties are defined in boards.txt with a ".N" suffix
|
||||||
// for example:
|
// for example:
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user