summaryrefslogtreecommitdiff
path: root/quantum/rgblight
diff options
context:
space:
mode:
authorEli Lipsitz <552502+elipsitz@users.noreply.github.com>2023-03-25 17:12:30 -0700
committerGitHub <noreply@github.com>2023-03-26 00:12:30 +0000
commit7e54defa20bd6a4f199fb1da0f25e83f0d55bf25 (patch)
tree785d398b61f68552425f8aa36c08a7067022afa5 /quantum/rgblight
parentcd542a0f6767231d73386c0913a9d2ee062ccf80 (diff)
Fix rgblight layers when animations aren't enabled (#20097)
Diffstat (limited to 'quantum/rgblight')
-rw-r--r--quantum/rgblight/rgblight.h4
1 files changed, 4 insertions, 0 deletions
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 }