Fix an issue where AVR and Teensy hex files could be interchanged

This commit is contained in:
Josh Stewart 2020-10-22 13:58:52 +11:00
parent ef32f7d149
commit ada8ccd807
2 changed files with 4 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "SpeedyLoader",
"version": "1.4.0",
"version": "1.4.1",
"description": "Speeduino universal firmware loader",
"main": "main.js",
"scripts": {

View File

@ -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