diff --git a/sim/state/filesystem.ts b/sim/state/filesystem.ts index 9eed2c31..79864871 100644 --- a/sim/state/filesystem.ts +++ b/sim/state/filesystem.ts @@ -15,4 +15,10 @@ namespace pxsim.files { const b = board(); b.fileSystem.remove(filename); } + export function readToSerial(filename: string) { + const b = board(); + let f = b.fileSystem.files[filename]; + if (f) + b.serialState.writeSerial(f); + } } \ No newline at end of file