diff --git a/bun.lockb b/bun.lockb index eddf29b4..b22328c4 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/package.json b/package.json index 07d00c38..8069ac17 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "node": ">=20.11.0" }, "dependencies": { - "@commaai/qdl": "git+https://github.com/commaai/qdl.js.git#5ff7c296c1ab3c5a0181097d830d2794cf84d238", + "@commaai/qdl": "git+https://github.com/commaai/qdl.js.git#80e30e48fa48284ab7e89406ec51ffacec27bb5e", "@fontsource-variable/inter": "^5.0.18", "@fontsource-variable/jetbrains-mono": "^5.0.21", "comlink": "^4.4.1", diff --git a/src/utils/qdl.js b/src/utils/qdl.js index a0f04749..04a4fe5b 100644 --- a/src/utils/qdl.js +++ b/src/utils/qdl.js @@ -275,6 +275,7 @@ export class QdlManager { // Erase current xbl partition await this.qdl.erase(`xbl_${currentSlot}`) + /** @type {[ManifestImage, string][]} */ const steps = [] const findImage = (name) => this.manifest.find((it) => it.name === name) @@ -294,7 +295,7 @@ export class QdlManager { const fileHandle = await this.imageWorker.getImage(image) const blob = await fileHandle.getFile() this.setMessage(`Flashing ${partitionName}`) - await this.qdl.flashBlob(partitionName, blob, onProgress) + await this.qdl.flashBlob(partitionName, blob, (progress) => onProgress(progress / image.size)) } console.debug('[QDL] Flashed all partitions')