forked from mirror/qmk_firmware
[CI] Format code according to conventions (#25827)
Format code according to conventions
This commit is contained in:
@@ -1381,7 +1381,7 @@ void rgblight_effect_twinkle(animation_status_t *anim) {
|
||||
|
||||
for (uint8_t i = 0; i < rgblight_ranges.effect_num_leds; i++) {
|
||||
TwinkleState *t = &(led_twinkle_state[i]);
|
||||
hsv_t * c = &(t->hsv);
|
||||
hsv_t *c = &(t->hsv);
|
||||
|
||||
if (!random_color) {
|
||||
c->h = rgblight_config.hue;
|
||||
|
||||
@@ -186,8 +186,7 @@ typedef struct {
|
||||
# define RGBLIGHT_USE_TIMER
|
||||
|
||||
# define RGBLIGHT_END_SEGMENT_INDEX (255)
|
||||
# define RGBLIGHT_END_SEGMENTS \
|
||||
{ RGBLIGHT_END_SEGMENT_INDEX, 0, 0, 0 }
|
||||
# define RGBLIGHT_END_SEGMENTS {RGBLIGHT_END_SEGMENT_INDEX, 0, 0, 0}
|
||||
# ifndef RGBLIGHT_MAX_LAYERS
|
||||
# define RGBLIGHT_MAX_LAYERS 8
|
||||
# endif
|
||||
@@ -202,10 +201,8 @@ typedef uint32_t rgblight_layer_mask_t;
|
||||
# else
|
||||
# error invalid RGBLIGHT_MAX_LAYERS value (must be <= 32)
|
||||
# endif
|
||||
# define RGBLIGHT_LAYER_SEGMENTS(...) \
|
||||
{ __VA_ARGS__, RGBLIGHT_END_SEGMENTS }
|
||||
# define RGBLIGHT_LAYERS_LIST(...) \
|
||||
{ __VA_ARGS__, NULL }
|
||||
# define RGBLIGHT_LAYER_SEGMENTS(...) {__VA_ARGS__, RGBLIGHT_END_SEGMENTS}
|
||||
# define RGBLIGHT_LAYERS_LIST(...) {__VA_ARGS__, NULL}
|
||||
|
||||
// Get/set enabled rgblight layers
|
||||
void rgblight_set_layer_state(uint8_t layer, bool enabled);
|
||||
|
||||
Reference in New Issue
Block a user