1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-01-18 07:52:14 +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; continue;
boolean firstRefBoardBlock = true; boolean firstRefBoardBlock = true;
for (TargetBoard board : platf.getBoards().values()) { for (TargetBoard board : platf.getBoards().values()) {
if (board.getReferencedPackageId() == null) String ref = board.getReferencedPackageId();
if (ref == null || !ref.equals(targetPackage.getId()))
continue; continue;
// Add a separator from the previous platform // Add a separator from the previous platform
if (firstRefBoardBlock) if (firstRefBoardBlock)
boardsMenu.add(new JSeparator()); boardsMenu.add(new JSeparator());