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

init_leds() loop counter too small #20

Open
bradanlane opened this issue Jul 30, 2023 · 0 comments
Open

init_leds() loop counter too small #20

bradanlane opened this issue Jul 30, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@bradanlane
Copy link

In most cases, the loop counter variable is a uint16_t. However, near the end of init_leds() there is the following lines of code which use an uint8_t. This becomes an infinite loop when there are more than 255 LEDs.

for (uint8_t x = 0; x < CONFIG.LED_COUNT; x++) {
    leds_out[x] = CRGB(0, 0, 0);
  }
@connornishijima connornishijima self-assigned this Jan 13, 2024
@connornishijima connornishijima added the bug Something isn't working label Jan 13, 2024
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