Skip to content

Commit

Permalink
Added mkdir for firmware upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jLynx committed Feb 25, 2024
1 parent cc3f0b0 commit 1ea4f9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Controller/Controller.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ const Controller = () => {

console.log("Downloading firmware update...", fileBlob.filename);

await write(`mkdir /FIRMWARE`, false, true);
await uploadFile(
`/FIRMWARE/${fileBlob.filename}`,
new Uint8Array(await fileBlob.blob.arrayBuffer()),
Expand All @@ -274,6 +275,7 @@ const Controller = () => {

console.log("Downloading firmware update...", fileBlob.filename);

await write(`mkdir /FIRMWARE`, false, true);
await uploadFile(
`/FIRMWARE/${fileBlob.filename}`,
new Uint8Array(await fileBlob.blob.arrayBuffer()),
Expand Down

0 comments on commit 1ea4f9c

Please sign in to comment.