Use new master naming scheme for Teensy
This commit is contained in:
parent
0cdced7cca
commit
69b04f558a
2
main.js
2
main.js
|
@ -90,7 +90,7 @@ ipcMain.on('download', (e, args) => {
|
||||||
fullFile = dlDir + "/" + filename;
|
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.
|
//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))
|
if(fs.existsSync(fullFile))
|
||||||
{
|
{
|
||||||
|
|
|
@ -395,18 +395,15 @@ function downloadHex(board)
|
||||||
var DLurl;
|
var DLurl;
|
||||||
switch(board) {
|
switch(board) {
|
||||||
case "TEENSY35":
|
case "TEENSY35":
|
||||||
if(e.options[e.selectedIndex].value == 'master') { DLurl = "http://speeduino.com/fw/teensy35/" + e.options[e.selectedIndex].value + ".hex"; }
|
DLurl = "http://speeduino.com/fw/teensy35/" + e.options[e.selectedIndex].value + "-teensy35.hex";
|
||||||
else { DLurl = "http://speeduino.com/fw/teensy35/" + e.options[e.selectedIndex].value + "-teensy35.hex"; }
|
|
||||||
console.log("Downloading Teensy 35 firmware: " + DLurl);
|
console.log("Downloading Teensy 35 firmware: " + DLurl);
|
||||||
break;
|
break;
|
||||||
case "TEENSY36":
|
case "TEENSY36":
|
||||||
if(e.options[e.selectedIndex].value == 'master') { DLurl = "http://speeduino.com/fw/teensy36/" + e.options[e.selectedIndex].value + ".hex"; }
|
DLurl = "http://speeduino.com/fw/teensy36/" + e.options[e.selectedIndex].value + "-teensy36.hex";
|
||||||
else { DLurl = "http://speeduino.com/fw/teensy36/" + e.options[e.selectedIndex].value + "-teensy36.hex"; }
|
|
||||||
console.log("Downloading Teensy 36 firmware: " + DLurl);
|
console.log("Downloading Teensy 36 firmware: " + DLurl);
|
||||||
break;
|
break;
|
||||||
case "TEENSY41":
|
case "TEENSY41":
|
||||||
if(e.options[e.selectedIndex].value == 'master') { DLurl = "http://speeduino.com/fw/teensy41/" + e.options[e.selectedIndex].value + ".hex"; }
|
DLurl = "http://speeduino.com/fw/teensy41/" + e.options[e.selectedIndex].value + "-teensy41.hex";
|
||||||
else { DLurl = "http://speeduino.com/fw/teensy41/" + e.options[e.selectedIndex].value + "-teensy41.hex"; }
|
|
||||||
console.log("Downloading Teensy 41 firmware: " + DLurl);
|
console.log("Downloading Teensy 41 firmware: " + DLurl);
|
||||||
break;
|
break;
|
||||||
case "ATMEGA2560":
|
case "ATMEGA2560":
|
||||||
|
|
Loading…
Reference in New Issue