fix: ota update

This commit is contained in:
2025-01-14 13:31:22 +01:00
parent f69be14b5e
commit 6c8bfa0272

View File

@@ -25,7 +25,7 @@
$serialPort = undefined; $serialPort = undefined;
try { try {
const file = await fetch( const file = await fetch(
`${data.meta.path}/${data.meta.update.ota!}`, `${data.meta.path}/${data.meta.update.ota?.name}`,
).then((it) => it.blob()); ).then((it) => it.blob());
await port.updateFirmware(file); await port.updateFirmware(file);