Skip to content

Commit

Permalink
Fix an issue where AVR and Teensy hex files could be interchanged
Browse files Browse the repository at this point in the history
  • Loading branch information
noisymime committed Oct 22, 2020
1 parent ef32f7d commit ada8ccd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SpeedyLoader",
"version": "1.4.0",
"version": "1.4.1",
"description": "Speeduino universal firmware loader",
"main": "main.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ada8ccd

Please sign in to comment.