Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit 09cba3c

Browse files
author
sebba
committed
2 parents 5c36870 + e9860e8 commit 09cba3c

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

modules/Preferences/pref.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,4 +207,4 @@ define(function (require, exports, module) {
207207

208208

209209
return Preferences;
210-
});
210+
});

node/compiler.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,19 @@
112112
console.log("User lib");
113113
paths.push(sketchbook + path.sep + "libraries" + path.sep + libname + path.sep + "src");
114114
}
115+
//<editor-fold desc="test new path for lib">
116+
else if(fs.existsSync(plat.root + path.sep + "hardware" + path.sep + "arduino" + path.sep + arch + path.sep + "libraries" + path.sep + libname))
117+
{
118+
console.log("User lib");
119+
paths.push(plat.root + path.sep + "hardware" + path.sep + "arduino" + path.sep + arch + path.sep + "libraries" + path.sep + libname);
120+
if(fs.existsSync(plat.root + path.sep + "hardware" + path.sep + "arduino" + path.sep + arch + path.sep + "libraries" + path.sep + libname + path.sep + "src"))
121+
paths.push((plat.root + path.sep + "hardware" + path.sep + "arduino" + path.sep + arch + path.sep + "libraries" + path.sep + libname + path.sep + "src"))
122+
if(fs.existsSync(plat.root + path.sep + "hardware" + path.sep + "arduino" + path.sep + arch + path.sep + "libraries" + path.sep + libname + path.sep + "utility"))
123+
paths.push((plat.root + path.sep + "hardware" + path.sep + "arduino" + path.sep + arch + path.sep + "libraries" + path.sep + libname + path.sep + "utility"))
124+
}
125+
//</editor-fold>
115126
else
116-
console.log("Library " + libname + "not exist")
127+
console.log("Library " + libname + " not exist")
117128
}
118129
});
119130
if(cb) cb();

0 commit comments

Comments
 (0)