support for readToSerial in simulator
This commit is contained in:
parent
6c1908456f
commit
f3aa07d175
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user