1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-17 06:52:18 +01:00

Fixed check for referenced cores. See #1157

This commit is contained in:
Cristian Maglie 2013-03-04 17:29:44 +01:00
parent 9024fe455c
commit 6bfe877c45

View File

@ -1278,9 +1278,10 @@ public class Base {
continue;
boolean firstRefBoardBlock = true;
for (TargetBoard board : platf.getBoards().values()) {
if (board.getReferencedPackageId() == null)
String ref = board.getReferencedPackageId();
if (ref == null || !ref.equals(targetPackage.getId()))
continue;
// Add a separator from the previous platform
if (firstRefBoardBlock)
boardsMenu.add(new JSeparator());