Skip to content
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

unhandled exception #58

Open
tballmsft opened this issue Feb 14, 2024 · 1 comment
Open

unhandled exception #58

tballmsft opened this issue Feb 14, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@tballmsft
Copy link
Contributor

Add robot extension to MakeCode and create this program (https://makecode.microbit.org/_PEqVT5VRaXzb):

robot.setRadioGroup(1)
robot.elecfreaksCuteBot.start()

See following error in console:

pxtapp.js:1  unhandled exception: Add 'robot start ...' block in the 'on start' block
   at instance (pxt_modules/microbit-robot/robotdriver.ts:47:9)
   at setRadioGroup (pxt_modules/microbit-robot/blocks.ts:256:5)
   at <main> (pxt_modules/ws2812b/main.ts:1:1)
@tballmsft tballmsft added the bug Something isn't working label Feb 14, 2024
@tballmsft
Copy link
Contributor Author

tballmsft commented Feb 14, 2024

This error doesn't occur when the setRadioGroup statement is removed or placed after the start function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants