qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

commit 7e54defa20bd6a4f199fb1da0f25e83f0d55bf25
parent cd542a0f6767231d73386c0913a9d2ee062ccf80
Author: Eli Lipsitz <552502+elipsitz@users.noreply.github.com>
Date:   Sat, 25 Mar 2023 17:12:30 -0700

Fix rgblight layers when animations aren't enabled (#20097)


Diffstat:
Mquantum/rgblight/rgblight.h | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/quantum/rgblight/rgblight.h b/quantum/rgblight/rgblight.h @@ -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 }