Skip to content

Commit

Permalink
Remove static from clipping variables in rgblight.c
Browse files Browse the repository at this point in the history
This allows these variables to be called by keyboard code that uses the custom rgb driver.
  • Loading branch information
drashna committed Apr 13, 2020
1 parent 52ac6c4 commit b1a2cc7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions quantum/rgblight.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,11 @@ LED_TYPE led[RGBLED_NUM];
rgblight_segment_t const *const *rgblight_layers = NULL;
#endif

static uint8_t clipping_start_pos = 0;
static uint8_t clipping_num_leds = RGBLED_NUM;
static uint8_t effect_start_pos = 0;
static uint8_t effect_end_pos = RGBLED_NUM;
static uint8_t effect_num_leds = RGBLED_NUM;
uint8_t clipping_start_pos = 0;
uint8_t clipping_num_leds = RGBLED_NUM;
uint8_t effect_start_pos = 0;
uint8_t effect_end_pos = RGBLED_NUM;
uint8_t effect_num_leds = RGBLED_NUM;

void rgblight_set_clipping_range(uint8_t start_pos, uint8_t num_leds) {
clipping_start_pos = start_pos;
Expand Down

0 comments on commit b1a2cc7

Please sign in to comment.