Skip to content

Commit

Permalink
fix: ota update
Browse files Browse the repository at this point in the history
  • Loading branch information
Theaninova committed Jan 14, 2025
1 parent f69be14 commit 6c8bfa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/(app)/ccos/[device]/[version]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
$serialPort = undefined;
try {
const file = await fetch(
`${data.meta.path}/${data.meta.update.ota!}`,
`${data.meta.path}/${data.meta.update.ota?.name}`,
).then((it) => it.blob());
await port.updateFirmware(file);
Expand Down

0 comments on commit 6c8bfa0

Please sign in to comment.