1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

When build.core is not defined, fall back to "arduino". Fixes #2635

This commit is contained in:
Federico Fissore
2015-02-12 17:27:58 +01:00
parent ff6fb31f4a
commit e76d413454
3 changed files with 10 additions and 2 deletions

View File

@ -688,7 +688,7 @@ public class BaseNoGui {
// Add library folder for the current selected platform
TargetPlatform targetPlatform = getTargetPlatform();
if (targetPlatform != null) {
String core = getBoardPreferences().get("build.core");
String core = getBoardPreferences().get("build.core", "arduino");
if (core.contains(":")) {
String referencedCore = core.split(":")[0];
TargetPlatform referencedPlatform = getTargetPlatform(referencedCore, targetPlatform.getId());