Skip to content

Commit

Permalink
Fix rgblight layers when animations aren't enabled (qmk#20097)
Browse files Browse the repository at this point in the history
  • Loading branch information
elipsitz authored and nicsuzor committed Mar 28, 2023
1 parent 8712e81 commit 5be8375
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quantum/rgblight/rgblight.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit 5be8375

Please sign in to comment.