Skip to content

Commit c0231bb

Browse files
committed
PluggableDiscovery: add special case for property "." (self)
"Self" property scans for board identifier instead than on property keys. This stuff must be introduced to allow backwards compatibility with existing OTA mdns TXT properties.
1 parent de5d10c commit c0231bb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arduino-core/src/cc/arduino/packages/BoardPort.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,10 @@ public boolean matchesBoard(TargetBoard board) {
176176
if (suffix >= 0) {
177177
prop += "." + suffix;
178178
}
179+
if (prop == ".") {
180+
found = (board.getId().equals(value));
181+
break;
182+
}
179183
if (!boardProps.containsKey(prop)) {
180184
return false;
181185
}

0 commit comments

Comments
 (0)