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

JavaScript error when re-defining leds #24

Open
uPaymeiFixit opened this issue Aug 27, 2015 · 0 comments
Open

JavaScript error when re-defining leds #24

uPaymeiFixit opened this issue Aug 27, 2015 · 0 comments
Assignees
Labels

Comments

@uPaymeiFixit
Copy link
Owner

The following code re-defines the leds 2d array, yet does not throw any errors, and does not let the program recover by switching to another pattern.

leds[0] = 0

This is because we have redefined this led[0] array. I suspect it will also not work if we do leds = null or something.

A possible fix for this is either re-instantiating the leds every time we load a new pattern, or check every update if every element of the 2d array is still in tact.

@uPaymeiFixit uPaymeiFixit self-assigned this Aug 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant