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);
}
In most cases, the loop counter variable is a
uint16_t
. However, near the end ofinit_leds()
there is the following lines of code which use anuint8_t
. This becomes an infinite loop when there are more than 255 LEDs.