Minor fix for Teensy upload in Windows
This commit is contained in:
parent
ef32f7d149
commit
aaa637f433
4
main.js
4
main.js
|
@ -237,11 +237,13 @@ ipcMain.on('uploadFW', (e, args) => {
|
|||
var executableName = __dirname + "/bin/" + platform + "/teensy_post_compile";
|
||||
executableName = executableName.replace('app.asar',''); //This is important for allowing the binary to be found once the app is packaed into an asar
|
||||
var configName = executableName + ".conf";
|
||||
if(process.platform == "win32") { executableName = executableName + '.exe'; } //This must come after the configName line above
|
||||
|
||||
|
||||
var execArgs = ['-board=TEENSY35', '-reboot', '-file='+path.basename(args.firmwareFile, '.hex'), '-path='+path.dirname(args.firmwareFile), '-tools='+executableName.replace('/teensy_post_compile', "")];
|
||||
//console.log(execArgs);
|
||||
|
||||
if(process.platform == "win32") { executableName = executableName + '.exe'; } //This must come after the configName line above
|
||||
|
||||
console.log(executableName);
|
||||
const child = execFile(executableName, execArgs);
|
||||
|
||||
|
|
|
@ -46,7 +46,7 @@ function refreshSerialPorts()
|
|||
isMega = true;
|
||||
}
|
||||
}
|
||||
else if(ports[i].vendorId == "16c0")
|
||||
else if(ports[i].vendorId == "16c0" || ports[i].vendorId == "16C0")
|
||||
{
|
||||
//Teensy
|
||||
if(ports[i].productId == "0483")
|
||||
|
|
Loading…
Reference in New Issue