Skip to content

Commit 627cb88

Browse files
committed
Only packages of arduino were listed in the boards selection combo.
1 parent a0dbc82 commit 627cb88

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

it.baeyens.arduino.core/src/it/baeyens/arduino/tools/ArduinoHelpers.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1045,11 +1045,12 @@ public static String[] getPlatformFiles() {
10451045
public static String[] getBoardsFiles() {
10461046
File HardwareFolder = ArduinoInstancePreferences.getArduinoPath().append(ArduinoConst.ARDUINO_HARDWARE_FOLDER_NAME).toFile();
10471047
IPath homPath = new Path(System.getProperty("user.home"));
1048-
File HardwareFolder2 = homPath.append(".arduino15").append("packages").append("arduino").append("hardware").toFile();
1048+
// File HardwareFolder2 = homPath.append(".arduino15").append("packages").append("arduino").append("hardware").toFile();
1049+
File HardwareFolder2 = homPath.append(".arduino15").append("packages").toFile();
10491050

10501051
HashSet<String> boardFiles = new HashSet<String>();
10511052
searchFiles(HardwareFolder, boardFiles, ArduinoConst.BOARDS_FILE_NAME, 3);
1052-
searchFiles(HardwareFolder2, boardFiles, ArduinoConst.BOARDS_FILE_NAME, 3);
1053+
searchFiles(HardwareFolder2, boardFiles, ArduinoConst.BOARDS_FILE_NAME, 5);
10531054
if (boardFiles.size() == 0) {
10541055
Common.log(new Status(IStatus.ERROR, ArduinoConst.CORE_PLUGIN_ID, "No boards.txt files found in the arduino hardware folder", null));
10551056
return null;

0 commit comments

Comments
 (0)