control.reset support (#1352)

* control.reset support

* updated pxt
This commit is contained in:
Peli de Halleux
2018-10-05 14:51:27 -07:00
committed by GitHub
parent 9002edbb22
commit 2bcae02493
2 changed files with 3 additions and 2 deletions

View File

@ -40,7 +40,8 @@ namespace pxsim.control {
}
export function reset() {
U.userError("reset not implemented in simulator yet")
const cb = getResume();
pxsim.runtime.restart();
}
export function waitMicros(micros: number) {