Skip to content

Commit 995d3e1

Browse files
committed
2 parents ada8ccd + aaa637f commit 995d3e1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,11 +237,13 @@ ipcMain.on('uploadFW', (e, args) => {
237237
var executableName = __dirname + "/bin/" + platform + "/teensy_post_compile";
238238
executableName = executableName.replace('app.asar',''); //This is important for allowing the binary to be found once the app is packaed into an asar
239239
var configName = executableName + ".conf";
240-
if(process.platform == "win32") { executableName = executableName + '.exe'; } //This must come after the configName line above
240+
241241

242242
var execArgs = ['-board=TEENSY35', '-reboot', '-file='+path.basename(args.firmwareFile, '.hex'), '-path='+path.dirname(args.firmwareFile), '-tools='+executableName.replace('/teensy_post_compile', "")];
243243
//console.log(execArgs);
244244

245+
if(process.platform == "win32") { executableName = executableName + '.exe'; } //This must come after the configName line above
246+
245247
console.log(executableName);
246248
const child = execFile(executableName, execArgs);
247249

renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ function refreshSerialPorts()
4646
isMega = true;
4747
}
4848
}
49-
else if(ports[i].vendorId == "16c0")
49+
else if(ports[i].vendorId == "16c0" || ports[i].vendorId == "16C0")
5050
{
5151
//Teensy
5252
if(ports[i].productId == "0483")

0 commit comments

Comments
 (0)