Skip to content

Commit

Permalink
fix demo
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Mar 9, 2025
1 parent d515650 commit cce6446
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions demo/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,13 @@ window.connectDevice = async () => {
throw new Error("Browser missing WebUSB support");
}

// Initialize QDL device with programmer URL
const qdl = new qdlDevice(programmerSelect.value);
// Fetch programmer
const programmer = await fetch(programmerSelect.value)
.then((response) => response.blob())
.then((blob) => blob.arrayBuffer());

// Initialize QDL device with programmer
const qdl = new qdlDevice(programmer);
window.qdl = qdl;

// Start the connection
Expand Down

0 comments on commit cce6446

Please sign in to comment.