mirror of
https://github.com/qmk/qmk_firmware.git
synced 2026-11-13 19:31:29 +01:00
rgblight_led_index() subtracts the clipping start position and returns a uint8_t, so on the half whose clipping range does not start at 0 the LEDs of the other half wrap around to indices like 252..255. Those reached rgblight_driver.set_color() unchecked and, with the RP2040 vendor WS2812 driver, overwrote RAM past the LED buffer (the emulated EEPROM cache). Skip indices outside the clipping range in setrgb() and route the direct set_color() calls through it. Fixes #26480