diff options
| author | QMK Bot <hello@qmk.fm> | 2020-04-29 08:57:41 +0000 |
|---|---|---|
| committer | QMK Bot <hello@qmk.fm> | 2020-04-29 08:57:41 +0000 |
| commit | 812d80efbdc31b874930b635df48c8f365f5398b (patch) | |
| tree | a2a738072609215cf9a3e3c14aa2e8b677a891e5 /quantum | |
| parent | 86c4c4e91de20b3f928300cfab617963c31699f9 (diff) | |
| download | qmk_firmware-812d80efbdc31b874930b635df48c8f365f5398b.tar.gz qmk_firmware-812d80efbdc31b874930b635df48c8f365f5398b.zip | |
format code according to conventions [skip ci]
Diffstat (limited to 'quantum')
| -rw-r--r-- | quantum/rgblight.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/quantum/rgblight.c b/quantum/rgblight.c index ef46f231f..26cb41a96 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c | |||
| @@ -107,7 +107,7 @@ LED_TYPE led[RGBLED_NUM]; | |||
| 107 | rgblight_segment_t const *const *rgblight_layers = NULL; | 107 | rgblight_segment_t const *const *rgblight_layers = NULL; |
| 108 | #endif | 108 | #endif |
| 109 | 109 | ||
| 110 | rgblight_ranges_t rgblight_ranges = { 0, RGBLED_NUM, 0, RGBLED_NUM, RGBLED_NUM }; | 110 | rgblight_ranges_t rgblight_ranges = {0, RGBLED_NUM, 0, RGBLED_NUM, RGBLED_NUM}; |
| 111 | 111 | ||
| 112 | void rgblight_set_clipping_range(uint8_t start_pos, uint8_t num_leds) { | 112 | void rgblight_set_clipping_range(uint8_t start_pos, uint8_t num_leds) { |
| 113 | rgblight_ranges.clipping_start_pos = start_pos; | 113 | rgblight_ranges.clipping_start_pos = start_pos; |
| @@ -660,15 +660,12 @@ static void rgblight_layers_write(void) { | |||
| 660 | } | 660 | } |
| 661 | #endif | 661 | #endif |
| 662 | 662 | ||
| 663 | __attribute__((weak)) | 663 | __attribute__((weak)) void rgblight_call_driver(LED_TYPE *start_led, uint8_t num_leds) { ws2812_setleds(start_led, num_leds); } |
| 664 | void rgblight_call_driver(LED_TYPE *start_led, uint8_t num_leds) { | ||
| 665 | ws2812_setleds(start_led, num_leds); | ||
| 666 | } | ||
| 667 | 664 | ||
| 668 | #ifndef RGBLIGHT_CUSTOM_DRIVER | 665 | #ifndef RGBLIGHT_CUSTOM_DRIVER |
| 669 | void rgblight_set(void) { | 666 | void rgblight_set(void) { |
| 670 | LED_TYPE *start_led; | 667 | LED_TYPE *start_led; |
| 671 | uint8_t num_leds = rgblight_ranges.clipping_num_leds; | 668 | uint8_t num_leds = rgblight_ranges.clipping_num_leds; |
| 672 | 669 | ||
| 673 | # ifdef RGBLIGHT_LAYERS | 670 | # ifdef RGBLIGHT_LAYERS |
| 674 | if (rgblight_layers != NULL) { | 671 | if (rgblight_layers != NULL) { |
