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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -42,6 +42,6 @@
},
"dependencies": {
"pxt-common-packages": "0.24.2",
"pxt-core": "4.1.18"
"pxt-core": "4.1.19"
}
}

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) {