fix(proBoardRegistry): loadFirmware receives the store's compiled artifact as a string

compiledProgram is the base64/hex string the backend returned (what
RP2040Simulator.loadBinary consumes) — not raw bytes.
This commit is contained in:
David Montero Crespo 2026-07-22 21:22:40 +02:00
parent 32958640a3
commit a7c36f7a7b
1 changed files with 3 additions and 2 deletions

View File

@ -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