mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-17 13:12:08 +00:00
Formatting
This commit is contained in:
parent
2b5befcf8c
commit
1e69f4faf6
@ -909,39 +909,39 @@ void rgblight_set(void) {
|
||||
led[i].r = 0;
|
||||
led[i].g = 0;
|
||||
led[i].b = 0;
|
||||
# ifdef RGBW
|
||||
#ifdef RGBW
|
||||
led[i].w = 0;
|
||||
# endif
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
# ifdef RGBLIGHT_LAYERS
|
||||
#ifdef RGBLIGHT_LAYERS
|
||||
if (rgblight_layers != NULL
|
||||
# if !defined(RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF)
|
||||
# if !defined(RGBLIGHT_LAYERS_OVERRIDE_RGB_OFF)
|
||||
&& rgblight_config.enable
|
||||
# elif defined(RGBLIGHT_SLEEP)
|
||||
# elif defined(RGBLIGHT_SLEEP)
|
||||
&& !is_suspended
|
||||
# endif
|
||||
# endif
|
||||
) {
|
||||
rgblight_layers_write();
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
|
||||
# ifdef RGBLIGHT_LED_MAP
|
||||
#ifdef RGBLIGHT_LED_MAP
|
||||
rgb_led_t led0[RGBLED_NUM];
|
||||
for (uint8_t i = 0; i < RGBLED_NUM; i++) {
|
||||
led0[i] = led[pgm_read_byte(&led_map[i])];
|
||||
}
|
||||
start_led = led0 + rgblight_ranges.clipping_start_pos;
|
||||
# else
|
||||
#else
|
||||
start_led = led + rgblight_ranges.clipping_start_pos;
|
||||
# endif
|
||||
#endif
|
||||
|
||||
# ifdef RGBW
|
||||
#ifdef RGBW
|
||||
for (uint8_t i = 0; i < num_leds; i++) {
|
||||
convert_rgb_to_rgbw(&start_led[i]);
|
||||
}
|
||||
# endif
|
||||
#endif
|
||||
rgblight_driver.setleds(start_led, num_leds);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user