From 1ea4f9c44c910fbf55286e68e74de6418d26a17a Mon Sep 17 00:00:00 2001 From: jLynx Date: Sun, 25 Feb 2024 16:26:13 +1300 Subject: [PATCH] Added mkdir for firmware upload --- src/components/Controller/Controller.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/Controller/Controller.tsx b/src/components/Controller/Controller.tsx index 5378ebe..7b8b86d 100644 --- a/src/components/Controller/Controller.tsx +++ b/src/components/Controller/Controller.tsx @@ -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()), @@ -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()),