From fed5e421c8777488cd706b012ff0336cc3a07bda Mon Sep 17 00:00:00 2001 From: Wojtek Siudzinski Date: Mon, 28 Sep 2015 13:23:26 +0100 Subject: [PATCH] Add ability to compile Electron firmware --- commands/CloudCommands.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/commands/CloudCommands.js b/commands/CloudCommands.js index 45a665cd9..68ab8a6fa 100644 --- a/commands/CloudCommands.js +++ b/commands/CloudCommands.js @@ -210,7 +210,8 @@ CloudCommand.prototype = extend(BaseCommand.prototype, { choices: [ 'Photon', 'Core', - 'P1' + 'P1', + 'Electron' ] }], function(ans) { @@ -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");