-
Notifications
You must be signed in to change notification settings - Fork 10
Restart the WASM module when stopping/starting/panicking #51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for distracted-dubinsky-fd8a42 ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Fixes panic HAL calls so the device is no longer operable afterwards. - Use the same logic for a normal stop/start. - Cache the WASM to avoid downloading and compiling it for each module instantiation. - Prefer using the _foo functions on the module vs cwrap. - Incidental fix to the radio message handling in demo.html
16fe288
to
0fd3b74
Compare
I still need to try this on Safari before merge. |
All good in Safari. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One last suggested change, then it looks good to go.
Co-authored-by: Robert Knight <[email protected]>
Thanks, will test the level detection with that change in and then merge. |
We already precompile the WASM.
…on-microbit-v2-simulator into modularize
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Fixes panic HAL calls so the device is no longer operable afterwards.
instantiation.
No editor changes needed, but given the level of change I've set up a review branch via the editor in case there are integration issues: https://review-python-editor-next.microbit.org/mod-sim-test/