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

Reload the LED pattern generator on setting change #139

Merged
merged 3 commits into from
Jun 16, 2024

Conversation

Jonty
Copy link
Member

@Jonty Jonty commented Jun 16, 2024

Without this it requires a reboop of the badge in order for the led pattern to actually change.

I have not tested this on an actual badge, only in the simulator - which doesn't have LED's!

This could be a lot more elegant if we allow apps to subscribe for callbacks when a specific settings key is updated.

Jonty and others added 3 commits June 16, 2024 13:57
Without this it requires a reboop of the badge in order for the led
pattern to actually change.
The old code set fps to 0, meaning the pattern is never checked again. Changing this to 1 means the background task won't actually exit when set to the off pattern, which allows changing the pattern without a reboot
@MatthewWilkes
Copy link
Member

Fixed issue when transitioning over the 'off' pattern, and LED display in simulator.

@MatthewWilkes MatthewWilkes merged commit b6906ca into main Jun 16, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants