mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2025-12-11 05:16:16 +00:00
fix: ota update
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user