From ada8ccd8077e1aafa4d28c43bf82127449e63201 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Thu, 22 Oct 2020 13:58:52 +1100 Subject: [PATCH] Fix an issue where AVR and Teensy hex files could be interchanged --- package.json | 2 +- renderer.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4ae7070..259eec4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "SpeedyLoader", - "version": "1.4.0", + "version": "1.4.1", "description": "Speeduino universal firmware loader", "main": "main.js", "scripts": { diff --git a/renderer.js b/renderer.js index 29c6189..0c21389 100644 --- a/renderer.js +++ b/renderer.js @@ -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