From a7c36f7a7baed266636e6a2bab3caad30e3bb674 Mon Sep 17 00:00:00 2001 From: David Montero Crespo Date: Wed, 22 Jul 2026 21:22:40 +0200 Subject: [PATCH] fix(proBoardRegistry): loadFirmware receives the store's compiled artifact as a string MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit compiledProgram is the base64/hex string the backend returned (what RP2040Simulator.loadBinary consumes) — not raw bytes. --- frontend/src/lib/proBoardRegistry.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/lib/proBoardRegistry.ts b/frontend/src/lib/proBoardRegistry.ts index 607474b3..3a46e306 100644 --- a/frontend/src/lib/proBoardRegistry.ts +++ b/frontend/src/lib/proBoardRegistry.ts @@ -65,10 +65,11 @@ export interface ProBoardDef { createSimulator?: (pm: unknown) => ProBoardSimulator; /** Load compiled firmware into a createSimulator() instance at run time — * the overlay owns the whole sequence (PIO attach, binary load, demo I2C - * devices, ...). `program` is the compiled binary the backend returned. */ + * devices, ...). `program` is the compiled artifact exactly as the store + * holds it (base64/hex string, same value RP2040Simulator.loadBinary gets). */ loadFirmware?: ( sim: ProBoardSimulator, - program: Uint8Array, + program: string, ctx: { boardKind: string; boardId: string }, ) => void; /** Built-in bridge sensors registered without wiring (e.g. an on-board I2C