Skip to content

Commit

Permalink
This <ay you can add several libraries !
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasferry committed Aug 24, 2017
1 parent 8485078 commit 48b7a67
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions nodes/core/external/thingml-engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,12 @@ function compileAndUpload(node){
}

if(node.libraries !== "") {
var arduinoLibraries = spawn('/Applications/Arduino.app/Contents/MacOS/Arduino', [
'--install-library', node.libraries
]);
var tab = node.libraries.split(',');
for(var i in tab) {
var arduinoLibraries = spawn('/Applications/Arduino.app/Contents/MacOS/Arduino', [
'--install-library', tab[i]
]);
}
}

//We Should install libaries first
Expand Down

0 comments on commit 48b7a67

Please sign in to comment.