~ruther/qmk_firmware

7e54defa20bd6a4f199fb1da0f25e83f0d55bf25 — Eli Lipsitz 2 years ago cd542a0
Fix rgblight layers when animations aren't enabled (#20097)

1 files changed, 4 insertions(+), 0 deletions(-)

M quantum/rgblight/rgblight.h
M quantum/rgblight/rgblight.h => quantum/rgblight/rgblight.h +4 -0
@@ 174,6 174,10 @@ typedef struct {
    uint8_t val;
} rgblight_segment_t;

// rgblight_set_layer_state doesn't take effect until the next time
// rgblight_task runs, so timers must be enabled for layers to work.
#    define RGBLIGHT_USE_TIMER

#    define RGBLIGHT_END_SEGMENT_INDEX (255)
#    define RGBLIGHT_END_SEGMENTS \
        { RGBLIGHT_END_SEGMENT_INDEX, 0, 0, 0 }