mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-04 09:02:50 +00:00
fix: ota update
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user