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:
parent
32958640a3
commit
a7c36f7a7b
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue