Fix an issue where AVR and Teensy hex files could be interchanged
This commit is contained in:
parent
ef32f7d149
commit
ada8ccd807
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "SpeedyLoader",
|
"name": "SpeedyLoader",
|
||||||
"version": "1.4.0",
|
"version": "1.4.1",
|
||||||
"description": "Speeduino universal firmware loader",
|
"description": "Speeduino universal firmware loader",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -238,7 +238,9 @@ function downloadHex(isTeensy)
|
||||||
var DLurl;
|
var DLurl;
|
||||||
if(isTeensy)
|
if(isTeensy)
|
||||||
{
|
{
|
||||||
DLurl = "http://speeduino.com/fw/teensy35/" + e.options[e.selectedIndex].value + ".hex";
|
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"; }
|
||||||
|
|
||||||
console.log("Downloading Teensy 35 firmware: " + DLurl);
|
console.log("Downloading Teensy 35 firmware: " + DLurl);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue