From d4bbf71b307bba3c7d17c4afec02afc6f47b36c0 Mon Sep 17 00:00:00 2001 From: Martino Facchin Date: Thu, 7 Mar 2019 14:10:42 +0100 Subject: [PATCH] Match wildcard property "." with board fqbn/name --- arduino-core/src/cc/arduino/packages/BoardPort.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arduino-core/src/cc/arduino/packages/BoardPort.java b/arduino-core/src/cc/arduino/packages/BoardPort.java index 1f5181b89..2052339f1 100644 --- a/arduino-core/src/cc/arduino/packages/BoardPort.java +++ b/arduino-core/src/cc/arduino/packages/BoardPort.java @@ -144,6 +144,16 @@ public class BoardPort { PreferencesMap identificationProps = getIdentificationPrefs(); 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 // for example: //