From 7e54defa20bd6a4f199fb1da0f25e83f0d55bf25 Mon Sep 17 00:00:00 2001 From: Eli Lipsitz <552502+elipsitz@users.noreply.github.com> Date: Sat, 25 Mar 2023 17:12:30 -0700 Subject: Fix rgblight layers when animations aren't enabled (#20097) --- quantum/rgblight/rgblight.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'quantum') diff --git a/quantum/rgblight/rgblight.h b/quantum/rgblight/rgblight.h index c71da29332..2e85541313 100644 --- 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 } -- cgit v1.2.3