support for readToSerial in simulator

This commit is contained in:
Peli de Halleux 2017-04-20 00:02:41 -07:00
parent 6c1908456f
commit f3aa07d175

View File

@ -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);
}
}