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

Using a radio program involving signal strength in Alpha crashes sim/fails on micro:bit #911

Closed
jaustin opened this issue Jul 3, 2018 · 2 comments
Assignees
Labels

Comments

@jaustin
Copy link
Collaborator

jaustin commented Jul 3, 2018

Describe the bug

When moving a program that uses the radio 'gear' to add signal strength into the program and then upgrading it to v1/alpha the sim crashes on first use of radio with error:

Program Error: pxsim.radio.receivedBuffer is not a function

To Reproduce
Steps to reproduce the behavior:

  1. Open this program in v0 https://makecode.microbit.org/_5eTATL2Apfhr
  2. verify that the simulator behaves as expected (press button A once to bring in the second micro:bit, then A again to send a message over radio)
  3. Download your program to two micro:bits and verify that when pressing button A the first micro:bit displays 'x' and then a signal strength value
  4. Move to the alpha editor, import/open the same program
  5. Use the simulator by pressing button A twice.
  6. The second time you press button A the sim crashes with
    Program Error: pxsim.radio.receivedBuffer is not a function
  7. Download the program to two micro:bits
  8. When you press A on a real micro:bit, the second micro:bit only displays '0'

Expected behavior
The simulator and micro:bit behaves as they did in v0

Screenshots

radio signal

Desktop (please complete the following information):
Windows 10 Chrome 66

Additional context
This also fails when loading a hex file from v0 to v1 and the user is not warned about any possible disruption.

If you want I can also file separate issues for things like the fact the new block can't be selected in alpha, but I though probably this would be enough for now?

@jaustin
Copy link
Collaborator Author

jaustin commented Jul 3, 2018

FWIW, this works fine if creating in alpha
image

@abchatra abchatra changed the title Alpha: using a radio program involving signal strength in Alpha crashes sim/fails on micro:bit Using a radio program involving signal strength in Alpha crashes sim/fails on micro:bit Jul 6, 2018
@riknoll riknoll self-assigned this Jul 26, 2018
@riknoll riknoll closed this as completed Jul 27, 2018
@lock
Copy link

lock bot commented Sep 26, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Sep 26, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants