Skip to content

Commit

Permalink
Merge pull request #141 from spark/feature/electron-compile
Browse files Browse the repository at this point in the history
Add ability to compile Electron firmware
  • Loading branch information
brycekahle committed Sep 30, 2015
2 parents 8bf980e + fed5e42 commit d5b6fd0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion commands/CloudCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,8 @@ CloudCommand.prototype = extend(BaseCommand.prototype, {
choices: [
'Photon',
'Core',
'P1'
'P1',
'Electron'
]
}], function(ans) {

Expand Down Expand Up @@ -332,6 +333,12 @@ CloudCommand.prototype = extend(BaseCommand.prototype, {
platform_id = 8;
break;

case "electron":
case "e":
deviceType = "electron";
platform_id = 10;
break;

default:
console.error("\nTarget device " + deviceType + " is not valid");
console.error(" eg. particle compile core xxx");
Expand Down

0 comments on commit d5b6fd0

Please sign in to comment.