Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump qdl (sparse-stream) #120

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/utils/qdl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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')
Expand Down