Browse Source

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

pull/20262/head
Eli Lipsitz 1 year ago
committed by GitHub
parent
commit
7e54defa20
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      quantum/rgblight/rgblight.h

+ 4
- 0
quantum/rgblight/rgblight.h View File

@ -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 }


Loading…
Cancel
Save