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

Commit 222e67b

Browse files
2 parents 4d226ad + 8bb756c commit 222e67b

File tree

2 files changed

+15
-23
lines changed

2 files changed

+15
-23
lines changed

modules/Menu/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ define(function (require, exports, module) {
246246
CommandManager.register(Strings.ARDUINO.MENU.HELP.ITEM_ABOUT, ARDUINO_MENU_HELP_ABOUT, helpMenu_showAboutDialog);
247247

248248
if(brackets.platform === 'win')
249-
CommandManager.register(Strings.ARDUINO.MENU.HELP.ITEM_WIN_DRIVER, ARDUINO_MENU_HELP_DRIVER, helpMenu_driver);
249+
CommandManager.register(Strings.ARDUINO.MENU.HELP.ITEM_DRIVER, ARDUINO_MENU_HELP_DRIVER, helpMenu_driver);
250250

251251
HelpMenu.addMenuDivider();
252252
if(brackets.platform === 'win')

node/driver.js

+14-22
Original file line numberDiff line numberDiff line change
@@ -42,38 +42,30 @@
4242

4343
function install(driverPath){console.log("A "+driverPath);
4444
async.series([
45-
function(callback){console.log("B1");
45+
function(callback){
46+
console.log("C1 ");
47+
// atmel windows drivers
48+
var fileexe = path.join(driverPath , 'driver-atmel-bundle-7.0.712.exe'); console.log("CC " + fileexe);
49+
var atmelInstallation = exec( "\""+ fileexe + "\"" ,
50+
function (error, stdout, stderr) {
51+
callback(null, 'arduino');
52+
});
53+
},
54+
function(callback){
55+
console.log("B1");
4656
// arduino and linino windows drivers
47-
var fileexe = isWin64() ? path.join(driverPath , 'dpinst-amd64.exe') : path.join(driverPath + 'dpinst-x86.exe'); console.log("B2 " + fileexe);
57+
var fileexe = isWin64() ? path.join(driverPath , 'dpinst-amd64.exe') : path.join(driverPath, 'dpinst-x86.exe');
58+
console.log("B2 " + fileexe);
4859
var driverInstallation = exec("\""+fileexe+"\"",
4960
function (error, stdout, stderr) {
5061
console.log("B2.1");
51-
if (error !== null){
52-
console.error('B3: ' + error);
53-
callback(error);
54-
}
55-
else{
56-
console.log("B3 " + stdout);
5762
callback(null, 'arduino');
58-
}
59-
});
60-
},
61-
function(callback){console.log("C1 ");
62-
// atmel windows drivers
63-
var fileexe = path.join(driverPath + 'driver-atmel-bundle-7.0.712.exe'); console.log("CC " + fileexe);
64-
var atmelInstallation = exec( "\""+ fileexe + "\"" ,
65-
function (error, stdout, stderr) {
66-
if (error !== null)
67-
//console.log('exec error: ' + error);
68-
callback(error);
69-
else
70-
callback(null, 'arduino');
7163
});
7264
}
7365
],
7466
// optional callback
7567
function(err, results){
76-
if(!err){console.log("ERR "+err);
68+
if(err){console.log("ERR "+err);
7769
console.error(err);
7870
}
7971
else{

0 commit comments

Comments
 (0)