Skip to content

init_leds() loop counter too small #20

@bradanlane

Description

@bradanlane

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);
  }

Metadata

Metadata

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions