set_led_color accepts led_num equal to num_leds #1
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ws2812drv_set_led_color()checksled_num > num_leds. Forled_num == num_ledsthe check passes, andset_color()writes one LED past the end of the channel. This LED is the first LED of the next channel.A negative
led_numalso passes the check.Possible fix: use the same check as for
channel: