Skip to content

Commit

Permalink
Use new master naming scheme for Teensy
Browse files Browse the repository at this point in the history
  • Loading branch information
noisymime committed Jul 27, 2021
1 parent 0cdced7 commit 69b04f5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ ipcMain.on('download', (e, args) => {
fullFile = dlDir + "/" + filename;

//Special case for handling the build that is from master. This is ALWAYS downloaded as there's no way of telling when it was last updated.
if(filename == "master.hex" || filename == "master.ini")
if(filename.includes("master"))
{
if(fs.existsSync(fullFile))
{
Expand Down
9 changes: 3 additions & 6 deletions renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,18 +395,15 @@ function downloadHex(board)
var DLurl;
switch(board) {
case "TEENSY35":
if(e.options[e.selectedIndex].value == 'master') { DLurl = "http://speeduino.com/fw/teensy35/" + e.options[e.selectedIndex].value + ".hex"; }
else { DLurl = "http://speeduino.com/fw/teensy35/" + e.options[e.selectedIndex].value + "-teensy35.hex"; }
DLurl = "http://speeduino.com/fw/teensy35/" + e.options[e.selectedIndex].value + "-teensy35.hex";
console.log("Downloading Teensy 35 firmware: " + DLurl);
break;
case "TEENSY36":
if(e.options[e.selectedIndex].value == 'master') { DLurl = "http://speeduino.com/fw/teensy36/" + e.options[e.selectedIndex].value + ".hex"; }
else { DLurl = "http://speeduino.com/fw/teensy36/" + e.options[e.selectedIndex].value + "-teensy36.hex"; }
DLurl = "http://speeduino.com/fw/teensy36/" + e.options[e.selectedIndex].value + "-teensy36.hex";
console.log("Downloading Teensy 36 firmware: " + DLurl);
break;
case "TEENSY41":
if(e.options[e.selectedIndex].value == 'master') { DLurl = "http://speeduino.com/fw/teensy41/" + e.options[e.selectedIndex].value + ".hex"; }
else { DLurl = "http://speeduino.com/fw/teensy41/" + e.options[e.selectedIndex].value + "-teensy41.hex"; }
DLurl = "http://speeduino.com/fw/teensy41/" + e.options[e.selectedIndex].value + "-teensy41.hex";
console.log("Downloading Teensy 41 firmware: " + DLurl);
break;
case "ATMEGA2560":
Expand Down

0 comments on commit 69b04f5

Please sign in to comment.