Update main.js
parent
c5a9a91f6e
commit
0825a557a1
7
main.js
7
main.js
|
@ -113,6 +113,8 @@ document.getElementById("goButton").addEventListener("click", async () => {
|
||||||
let payload;
|
let payload;
|
||||||
if (payloadType === "fusee.bin") {
|
if (payloadType === "fusee.bin") {
|
||||||
payload = hekate5;
|
payload = hekate5;
|
||||||
|
} else if (payloadType === "hekate4") {
|
||||||
|
payload = hekate4;
|
||||||
} else if (payloadType === "uploaded") {
|
} else if (payloadType === "uploaded") {
|
||||||
const file = document.getElementById("payloadUpload").files[0];
|
const file = document.getElementById("payloadUpload").files[0];
|
||||||
if (!file) {
|
if (!file) {
|
||||||
|
@ -136,13 +138,12 @@ document.getElementById("goButton").addEventListener("click", async () => {
|
||||||
device = await navigator.usb.requestDevice({ filters: [{ vendorId: 0x0955 }] });
|
device = await navigator.usb.requestDevice({ filters: [{ vendorId: 0x0955 }] });
|
||||||
|
|
||||||
logOutput(`Preparing to launch ${payloadType}...`);
|
logOutput(`Preparing to launch ${payloadType}...`);
|
||||||
|
|
||||||
let payload;
|
let payload;
|
||||||
if (payloadType === "fusee.bin") {
|
if (payloadType === "fusee.bin") {
|
||||||
//payload = fusee;
|
|
||||||
payload = hekate5;
|
payload = hekate5;
|
||||||
} else if (payloadType === "hekate4") {
|
} else if (payloadType === "hekate4") {
|
||||||
payload = hekate4
|
payload = hekate4;
|
||||||
} else if (payloadType === "uploaded") {
|
} else if (payloadType === "uploaded") {
|
||||||
const file = document.getElementById("payloadUpload").files[0];
|
const file = document.getElementById("payloadUpload").files[0];
|
||||||
if (!file) {
|
if (!file) {
|
||||||
|
|
Loading…
Reference in New Issue