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",
|
||||
"version": "1.4.0",
|
||||
"version": "1.4.1",
|
||||
"description": "Speeduino universal firmware loader",
|
||||
"main": "main.js",
|
||||
"scripts": {
|
||||
|
|
|
@ -238,7 +238,9 @@ function downloadHex(isTeensy)
|
|||
var DLurl;
|
||||
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);
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue