diff options
author | Eli Lipsitz <552502+elipsitz@users.noreply.github.com> | 2023-03-25 17:12:30 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-26 00:12:30 +0000 |
commit | 7e54defa20bd6a4f199fb1da0f25e83f0d55bf25 (patch) | |
tree | 785d398b61f68552425f8aa36c08a7067022afa5 /quantum | |
parent | cd542a0f6767231d73386c0913a9d2ee062ccf80 (diff) |
Fix rgblight layers when animations aren't enabled (#20097)
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/rgblight/rgblight.h | 4 |
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 } |